#1
|
||||
|
||||
PNG vs JPG
When posting an image as an attachment, the upload window says that JPG, GIF and JPG are limited to 5 MB or 640x480 pixels.
That's clearly not what happens in practice. PNG images with a width over 640 pixels are resized to 640 pixels and converted to jpg while JPG images are left as is. examples : here are 2 PNG images originally in 2268 x 935 resized to 640 pixels wide and converted to jpg by the forum's software. here are 2 jpg images. The bigger one is 1429 x 2048. The forum's software didn't resize them. Why are PNG and JPG images treated differently ? Let's see what happens to this 1081x361 pixels PNG image. (58.67 kb). Edit: resized to 640x214 and converted to JPG. The smaller image (506 x 320) is left alone. I'm using png images because that's the format Inkscape uses for exporting bitmaps.
__________________
Carlos |
Google Adsense |
#2
|
||||
|
||||
Perhaps this little extension for Inkscape would be of interest to you.
https://github.com/giacmir/Inkscape-...port-extension It exports the image and then automatically converts the PNG to JPG. Haven't tried it myself, so if you do I'd be curious to hear if works for you. Steve
__________________
My papercraft site: http://stevespaper.com My website: http://stevebondy.ca Currently developing: Normandy SR2 from Mass Effect 2 |
#3
|
||||
|
||||
Thank you but I don't really want to install a new program on my old laptop (this solution apparently require an extension for Inkscape and another program). I'll keep converting the png to JPG with xnview.
__________________
Carlos |
#4
|
|||
|
|||
As I understand, the point is not convenience for the poster, but PNG files being degraded to JPG automatically and without notice. JPG is especially bad for line art (usually a noisy swarm of pixels surrounds hard edges); if the number of colors is limited, even GIF is better.
|
#5
|
|||
|
|||
And there is your answer.
Reduce your oversize pictures before posting. Windows "Paint" will do that even if Inkscape will not. |
Google Adsense |
#6
|
||||
|
||||
I'm sure it's all about the image file size. *.jpg files typically use less memory than *.png files of the same dimensional size. But the trade off is that they sacrifice visual fidelity. E.g., you'll get pixelization. The theory is that jpg will blend similar colors but the human eye will compensate for the blurriness and you will still perceive the image--pretty much as intended. Consequently, jpg format is considered a 'lossy' format because you actually lose image data in order to achieve smaller file size. And once you further compress a *.jpg file, you can achieve quite small file sizes and maintain a reasonable representation of the image.
Png format is considered 'lossless'. You don't really lose image data. Png is generally better at compressing the file, though, so you can still achieve fairly small file sizes but without losing image quality. But png's more efficient compression does not quite match jpg's compression+lossiness in terms of created small file sizes. Generally, when you are providing a service which provides imaging hosting (such as papermodelers.com does) You want to prioritize serving smaller sized image files rather than more image fidelity in larger sized files. Thus, the preference for jpg files. This reduces memory needed to store the files, as well as transmission speed from the server to the browser when a user views the image. I would take the ' limited to 5 MB or 640x480 pixels' as very approximate ranges. Depending upon the number of colors in the image, the compression algorithm used, the file format, image resolution and pixel dimension the formula can be exceedingly fluid. --jeff (My, ain't I verbose this morning!) BTW, the reason Inkscape favors png is that jpg is a proprietary format (or at least was, the rights may have expired by now). Inkscape, being fairly serious about its open source roots, avoids incorporating proprietary technologies. |
#7
|
||||
|
||||
Quote:
The original of the pic attached to this reply is a 2991 x 996 px PNG image of 521 kb. If I convert it to JPG with minimal quality loss it turns into a 644 kb file. If I choose the default 80% compression ratio, the resulting jpg is 237 kb but the image is now blurry. All 3 files are the same width/height.
__________________
Carlos Last edited by cafe; 02-19-2017 at 11:00 AM. |
#8
|
||||
|
||||
We will take a look at the file size issue, and hopefully try to normalize the space allowed.
Rick
__________________
"Rock is Dead, Long Live Paper and Scissors" International Paper Model Convention Blog http://paperdakar.blogspot.com/ "The weak point of the modern car is the squidgy organic bit behind the wheel." Jeremy Clarkson, Top Gear's Race to Oslo |
#9
|
||||
|
||||
Thank you Rick!
__________________
Carlos |
#10
|
|||
|
|||
As far as I can make out from what I've downloaded, both jpg & png are currently limited to 800 pixels width but can have greater height than that.
pdf may be a better bet if you want to post larger images. |
Google Adsense |
|
|