Page 1 of 1
RESOLVED: horrible output of an image resize
Posted: 2015-11-18T17:26:20-07:00
by 2049651
Hi.
Now I've just check about the output of resize function of IM.
I have worked on 6.2.8 x86 dll and vc++.
Is this the best output of ImageMagicK?
If yes, I'm afraid, I have to find another Image processing library.
You can also see the output the same as following me.
1.read the pengguin image at your computer(might be if you have working on windows OS, then probably you have penguinn.jpg in your picture folder of the computer .
Also, The size is 1024x768.
2. Use the IM library of resize function.
Xxx.resize("32x32");
3.once use the resize function to original size.
Xxx.resize("1024x768");
Then you can find horrible output.
Actually I hope that the output is almost back the same as original.
But the output is so very very distorted.
Is there any another solution?
Re: horrible output of an image resize
Posted: 2015-11-18T18:18:43-07:00
by fmw42
How can we reproduce your problem without the image?
Does it produce bad results in the command line rather than some API? If good results, then your API commands are wrong.
Re: horrible output of an image resize
Posted: 2015-11-18T18:46:21-07:00
by snibgo
It seems the OP takes an image 1024x768 and resizes to 32x32. Then resizes this back to 1024x768.
2049651 wrote:Actually I hope that the output is almost back the same as original.
But the output is so very very distorted.
Of course, it is distorted. Shrinking the image discards 99.9% of the pixels. When you enlarge those, you won't get the original back.
Re: horrible output of an image resize
Posted: 2015-11-18T19:00:53-07:00
by fmw42
What is the point of your double resize? What do you hope to gain from that or what is its purpose. I would agree with user snibgo. Such drastic size changes will degrade the image no matter what resize filter you use. Also IM 6.2.8 is ancient -- almost 650 versions old. You should try to upgrade if you can.
Re: horrible output of an image resize
Posted: 2015-11-18T21:17:18-07:00
by 2049651
fmw42 wrote:What is the point of your double resize? What do you hope to gain from that or what is its purpose. I would agree with user snibgo. Such drastic size changes will degrade the image no matter what resize filter you use. Also IM 6.2.8 is ancient -- almost 650 versions old. You should try to upgrade if you can.
Now I check my version is 6.9.2 Q8 dll.
Also the purpose is check that whether resize (scale) function work well or not.
Anyway, What should I do for using cubic or bicubic scale function?
Re: horrible output of an image resize
Posted: 2015-11-19T00:00:22-07:00
by fmw42
-filter catrom -resize
Sorry I do not know how to do that in any API, just the command line.
Re: horrible output of an image resize
Posted: 2015-11-19T00:30:28-07:00
by Bonzo
Also the purpose is check that whether resize (scale) function work well or not.
Have you found any other software that will produce a better image under such circumstances?
Re: horrible output of an image resize
Posted: 2015-11-23T07:37:44-07:00
by glennrp
You should get much more consistent results, that don't look horrible, if you reduce to 1x1 instead of 32x32.
Re: horrible output of an image resize
Posted: 2015-11-29T05:41:13-07:00
by 2049651
How can I close this posting? I found an my Imagemagick result not bad.
Re: horrible output of an image resize
Posted: 2015-11-29T12:07:59-07:00
by fmw42
2049651 wrote:How can I close this posting? I found an my Imagemagick result not bad.
Just edit the title of your first post in this topic. I will do that for you.