Page 1 of 1
Windows XP MSpaint and jpg
Posted: 2013-04-21T11:46:10-07:00
by myspacee
Hello,
I want to understand and replicate same effect done by Windows XP mspaint.exe.
Post this 'large' image (2,3Mb) :
http://static.repubblica.it/laprovincia ... iginal.jpg
then same image opened and saved with MS paint (385 kb) :
http://static.repubblica.it/laprovincia ... SPAINT.jpg
how i can reproduce same 'conversion' ?
thank you for any info,
m.
Re: Windows XP MSpaint and jpg
Posted: 2013-04-21T12:34:22-07:00
by Bonzo
What conversion is that? They look the same to me except one is smaller than the other.
Re: Windows XP MSpaint and jpg
Posted: 2013-04-21T14:35:09-07:00
by myspacee
I can't obtain same result with IM.
Images are similar, but size it's very different; can't replicate mspaint result.
Re: Windows XP MSpaint and jpg
Posted: 2013-04-21T16:37:08-07:00
by GreenKoopa
It looks like your goal is to reduce the file size of an image (but we are left to guess).
Code: Select all
convert original.jpg -quality 70 out.jpg
-quality sets your compression level (vs. visual quality). Change 70 to whatever trade-off you desire.
Also consider
-strip or
-resize to further reduce file size.
Re: Windows XP MSpaint and jpg
Posted: 2013-04-21T23:00:39-07:00
by myspacee
Hello,
maybe before i need to explain my goal.
I've an intranet portal where my user upload images to obtain jpg used in varius production task.
Now i need to 'normalize' varius image format before processing, so i use IM to strip, php to resize, and other tools,
before proced to user request.
I travel a lot for work and notice that in many places (everywhere) low skilled people used MSpaint (xp version)
to reduce image size. (mspaint strip also other information). Not only my madness, search on google find more
than one admin
advise this 'trick'.
I know that jpg is a lossy format and all other details about size, numbers of color, quality, etc, but people out there think
mspaint is magick, when we know which tool is really (Image)magick.
So, so many words, to show that mspaint is used as standard (!) in production, and need some serius counterpart.
Anyone want to 'MSpaintize' ?
thank you,
m.
Re: Windows XP MSpaint and jpg
Posted: 2013-04-21T23:50:07-07:00
by GreenKoopa
There is no magic, you are simply reducing file size by throwing away image quality.
Code: Select all
convert original.jpg -strip -quality 30 out.jpg
This reduces your image file from 2.30 MB to 0.18 MB by reducing the image's quality. Keep lowering -quality ## and you will definitely see the file size and visual quality shrink.
If you are also resizing or doing other operations, consider the order in which you do them. When possible, compression such as this is often done as the final step.
Re: Windows XP MSpaint and jpg
Posted: 2013-04-22T00:59:49-07:00
by snibgo
If you know (roughly) how small you want the output to be, you can use:
Code: Select all
convert original.jpg -define jpeg:extent=300kb out.jpg
Re: Windows XP MSpaint and jpg
Posted: 2013-04-22T02:08:01-07:00
by myspacee
Thank you for reply,
I know that it's not magic, but maybe can't focus my goal.
I want to give noob user a smart upload that normalize file.
MSpaint can reduce size (and quality obviously) but, at common user eyes maintain image the same.
Googling find that MSpaint blurry a lot, but in posted examples, I can't see big differencies between 2 image on video.
If you can, reassume in a command line, syntax that can obtain same result, starting from posted image.
thank you again for your time,
m.
Re: Windows XP MSpaint and jpg
Posted: 2013-04-22T02:20:38-07:00
by snibgo
What rules does MSpaint follow? Does it reduce to a certain quality level, or does it reduce the size to a certain fraction?
Re: Windows XP MSpaint and jpg
Posted: 2013-04-23T10:42:31-07:00
by myspacee
Snibgo i don't know MSpaint rules.
For sure image result blurred a bit, but result is very similar to source image.
Which are best IM switches to identify usefull informations abour jpg?
I want to replicate this process.
Thank you for all help,
M.