Page MenuHomePhabricator

Replace a JPG with a PNG
Closed, DuplicatePublic

Description

JPG images are frequently very low-quality because of compression artifacts.

It's frustrating trying to replace multiple JPG images at a time!

I have to transfer the image tags over from the JPG to the PNG, upload the new PNG image, change ".JPG" to ".PNG" on the pages that link to the JPG, and then go into the JPG image itself's page itself, and request for it to be deleted.

That process doesn't sound so bad, until you realize that sometimes an image will be linked to from four or more pages!

It'd be phenomenal if there was a feature that would automatically do all of the above for me, or better yet: leave out the image extension in the first place, and have the browser use the image header to determine the file type, like Imgur and other hosting sites do.

Event Timeline

Jordan created this task.May 5 2016, 1:02 AM
Restricted Application added a project: Multimedia. · View Herald TranscriptMay 5 2016, 1:02 AM
Restricted Application added subscribers: Zppix, Steinsplitter, Aklapper. · View Herald Transcript
Restricted Application added a project: Commons. · View Herald TranscriptMay 5 2016, 2:30 AM
Restricted Application added a subscriber: Matanya. · View Herald Transcript

This sounds a bit like T25255: Make it possible to upload in a different image format while preserving file history or maybe T6421: Image file extension should not be part of the name.

As a side note, Wikimedia Commons has some bot that will do the replacements on pages using the file for you, I think. Someone more active there than me can probably point you to it.

Restricted Application added a subscriber: Poyekhali. · View Herald TranscriptMay 5 2016, 2:34 AM
Jordan added a comment.May 5 2016, 2:51 AM

Ah, I see. The sites I use it for aren't Wikipedia, though. This is the kind of thing that a bot shouldn't be necessary for; that's just silly!

It's something that I do really often and see being done really often, and it strikes me as something that should really be integrated into the site. It's a real pain to fix JPEGS.

brion added a subscriber: brion.May 5 2016, 3:31 AM

Delete the jpeg and put a redirect in place, should work.

Jordan added a comment.May 5 2016, 3:43 AM

Huh, that's an interesting idea.

But then that's almost as much work, because I still have to upload a new PNG image with identical tags.

The end goal is to make replacing a PNG with a JPG as simple as replacing a PNG with a PNG.

brion added a comment.May 5 2016, 4:00 AM

Added some detail notes and links to related tasks at https://phabricator.wikimedia.org/T6421#2266418