File talk:Timeline. Overdose deaths involving opioids, United States.jpg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Choice of image type

[edit]

User:Timeshifter, why using JPEG (=only suitable for photographs) instead of original PNG ? --Itu (talk) 11:06, 2 April 2019 (UTC)[reply]

Not everyone has high-speed internet. PNG size (292kb after cropping and adding border) is twice the kilobytes of jpg (147kb).
And I see no difference in clarity.
I use freeware IrfanView. I even used online PNG crush to get it down to 292kb.
GIF works better than both jpg and png. It is only 81kb after editing. It reduces the number of colors, though. I see no difference in image clarity. I may use that instead. --Timeshifter (talk) 19:13, 2 April 2019 (UTC)[reply]
Thats a poor argument. Reducing downloadsizes is a task of the rendering process of mobile versions. --Itu (talk) 12:34, 3 April 2019 (UTC)[reply]
@Itu: When I keep clicking an image on mobile it can expand to full size in many cases. I have to drag it to see the parts I want to see. When people have run out of high-speed data, they can drop down to 2G. Very slow speed. Like old dial-up speeds for desktops. So kilobytes matter.
https://en.wikipedia.org/wiki/2G
Converting a chart to JPG is absurd. Even if the user saves a few percentage points in bandwidth during download, the JPEG artifacts make the chart unreadable, so all of that bandwidth was wasted, therefore you're only increasing the bandwidth waste. Nemo 14:32, 3 April 2019 (UTC)[reply]
@Nemo bis: Visible artifacts only occur with absurd people who don't know how to use an image editor when converting to jpg. I pick a high save quality in IrfanView. No visible artifacts. No reduction in the number of colors as you did when converting to PNG8 (256 colors) here:
File:OpioidDeathsByTypeUS.png - 115kb. So you only saved 31kb. The jpg image is 147kb and has over 24,000 colors.
GIF is also lossless and also is 256 colors. As I said earlier it is only 81kb. So it is 2/3rds the size of your PNG8 image. And many more image editors create GIF images than create PNG8 images.
So I will be creating GIF images for basic graphics (without transparency) from now on. Since these are basic graphics I am seeing no differences in the images due to the number of colors. I am seeing no visible differences between any of the images, whether PNG, PNG8, JPG, or GIF. For more info see:
File:Timeline. Overdose deaths involving opioids, United States.gif
https://helpx.adobe.com/photoshop-elements/using/optimizing-images-gif-or-png.html
Also, I cropped the image to fit Wikipedia articles better, and I removed the CDC watermark as explained in Help:Removing watermarks. The source info was also cropped since it is very hard to read in article thumbnails, and because it is in the article references for the images in the article. Via caption references. Much of this was discussed in article talk pages to be able to fit more charts in the article with higher legibility. --Timeshifter (talk) 19:21, 5 April 2019 (UTC)[reply]