Page 1 of 2

Image Resize Blurry / Jagged

Posted: 2007-09-19T01:27:11-07:00
by johnford
Hi All,

If I run the following command all is well:

in.jpg -profile c:\AdobeRGB1998.icc -profile c:\USWebCoatedSWOP.icc -level 0%,100%,0.8 -density 150 -sharpen 0.5x0.5 -quality 100 out.jpg

but if I run the same command line with a resize the image becomes blurry:

in.jpg -profile c:\AdobeRGB1998.icc -profile c:\USWebCoatedSWOP.icc -level 0%,100%,0.8 -density 150 -resize 886x886 -sharpen 0.5x0.5 -quality 100 out.jpg

I am using version 6.3.5-8 on a PC.

Any help would be appreciated.

John.

Re: Image Resize Blurry / Jagged

Posted: 2007-09-19T03:52:19-07:00
by johnford
Also if I export the image as a tiff it works fine, the only problem is exporting as a jpeg.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-02T03:24:53-07:00
by johnford
Any ideas?

Im really stuck on this one.

John.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-02T20:49:44-07:00
by anthony
Did you enlarge or shrink the image with the resize?
What was its original size?

Enlarging always is a bit more blury as that is the nature of increasing the number of pixels.

If you shrank the image how are you displaying it? If you are enlarging the image to display it then that enlargement will again make it blury, but it is not the fault of the resize.

Basically how are you viewing/using the image?

Finally JPEG is a lossy format. Any form of processing will cause some loss of quality just from the act of saving to JPEG format. JPEG should only be used for the final image and any form of processing should not read from a JPEG copy of the image (unless that is the only source for the image such as JPEG from a digital camera). Avoid JPEG as an intermediate image format.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-05T06:43:22-07:00
by johnford
Hi,

Thank you for the reply.

I am shrinking the image.

John.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-06T18:22:33-07:00
by anthony
Then your display is not doing proper anti-aliased shrinking. Web browsers image reszing are not known for good results, only fast results. IM -resize is designed for good results (better than photoshop from some web page comparisions).

Re: Image Resize Blurry / Jagged

Posted: 2007-10-08T01:11:04-07:00
by johnford
I have been viewing the images in photoshop.

Regards,

John.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-08T22:19:43-07:00
by anthony
Is photoshop displaying the image at a different zoom that 100%?

That could be the cause of you viewed aliasing problems.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-10T01:39:47-07:00
by johnford
I dont think photoshop is the problem.

here is the original image.

here is the converted tiff.

and here is the converted jpg.

Both of the images are using the same command line they are just different output formats.

Regards,

John.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-15T23:07:30-07:00
by anthony
The result jpg was missing, but the tiff looks pretty dam good to me.
Of course I am not a expert and spotting such blurriness.

But other are, See...
http://www.xs4all.nl/~bvdwolf/main/foto ... ample1.htm
with a comparison of the default IM lanczos filter against other programs

Re: Image Resize Blurry / Jagged

Posted: 2007-10-16T06:29:54-07:00
by johnford
Hi,

If you right click on the link and select "Save Target As.." it should download ok.

Thank you for looking into my problem.

I agree the tiff does look good, I would love to use a jpeg though.

Regards,

John.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-16T17:21:00-07:00
by anthony
JPEG is however inherently lossy, particularly in sudden color changes such as detail. That is it make the results blurry! The lower the quality setting the worse it gets. Even at 100% quality default JPEG is lossy. Only the new JPEG2000 format has the non-lossy compression method, which of course means (like PNG) it is not very small in file size.

It is a trade off. size verses bluriness and 'ringing' effects.

Re: Image Resize Blurry / Jagged

Posted: 2007-10-17T04:52:33-07:00
by Bonzo
I was talking to some one on another forum about jpg quality and he tried different filters which helped.

Here are some links to some articles on image quality previously posted by Anthony.
http://www.xs4all.nl/~bvdwolf/main/f...own_sample.htm
http://www.xs4all.nl/~bvdwolf/main/f...e/example1.htm

Re: Image Resize Blurry / Jagged

Posted: 2007-10-17T17:26:53-07:00
by anthony
Bonzo wrote:Here are some links to some articles on image quality previously posted by Anthony.
http://www.xs4all.nl/~bvdwolf/main/f...own_sample.htm
http://www.xs4all.nl/~bvdwolf/main/f...e/example1.htm
Those pages are 404 Not Found

Re: Image Resize Blurry / Jagged

Posted: 2007-10-19T09:28:13-07:00
by johnford
Should the JPEG really look that bad?

If you only remove the resize command the image looks great.

and if you only use the resize command the image looks fine ...

but if you use the complete command it looks really bad.

Am I doing something wrong?

John.