iFrankWu / thumbnailator

Automatically exported from code.google.com/p/thumbnailator
Other
0 stars 0 forks source link

Can't properly process abnormal .jpg format picture #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Use thumbnailator process the following file,scale the size ,and save it. 
you'll find that the color lost or the color is not correct.

I find a reason is that the jpg file header is unnormal. and not start with 
JFIF chars.(you can see when you open it with HEX editor).
so I wish thumbnailator can process the unnormal jpg file correctly.tks.

Env:

jdk 1.6,cent os or win7, thumbnailator 0.4.5 ,Tomcat 6

Original issue reported on code.google.com by hhsc2...@gmail.com on 10 Jul 2013 at 9:41

Attachments:

GoogleCodeExporter commented 9 years ago
The issue can't be edited after I posted it? My mean is that:"thumbnailator 
can‘t process currectly  unnormal .jpg format picture ",not "thumbnailator 
can‘t  work".

Original comment by hhsc2...@gmail.com on 10 Jul 2013 at 9:49

GoogleCodeExporter commented 9 years ago
Hi,

Thank you for taking the time to file this issue.
Sorry for the delay in responding.

Thumbnailator is a library which depends on the Java Image I/O for the 
processing backend, including the loading of JPEG images.

Unfortunately, I'm going to have to say it is outside the scope of the 
Thumbnailator project to properly deal with abnormal JPEG images.

If Thumbnailator were modified to try to handle abnormal images as well, it 
would require serious effort which I do not have the expertise nor the time to 
implement.

Therefore, we will not be taking action on this issue.

----------------

One possible workaround would be to find a library that *can* handle abnormal 
JPEGs, and load it into a `BufferedImage`.

Once the image is loaded to a `BufferedImage`, Thumbnailator will be able to 
handle it properly.

Original comment by coobird...@gmail.com on 25 Aug 2013 at 6:22