[opencms-dev] Exception scaling Photos
Yves Glodt
yg at mind.lu
Wed Apr 18 09:41:54 CEST 2012
I found a solution in the meantime.
In fact it looks like the resizing routines were getting confused by the
exif info, so in my preprocessing I simply stripped out this information
(-strip):
#!/bin/sh
mkdir -p small
for file in *.jpg; do
convert "$file" -quality 80 -resize 50% -strip "small/$file"
done
On 17 April 2012 11:58, Yves Glodt <yg at mind.lu> wrote:
> Hello,
>
> I see the following exception resizing images:
>
> 17 Apr 2012 11:50:17,904 DEBUG [.opencms.loader.CmsImageScaler: 206]
> Unable to extract the image size for resource "/sites/
> urbantrail.lu/photos/2012/UT-2012_057.jpg".
> java.awt.color.CMMException: Invalid image format
> at sun.awt.color.CMM.checkStatus(CMM.java:131)
> at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:89)
> at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:516)
> at
> com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1169)
> at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native
> Method)
> at
> com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1137)
> at
> com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948)
> at javax.imageio.ImageIO.read(ImageIO.java:1422)
> at javax.imageio.ImageIO.read(ImageIO.java:1326)
> at com.alkacon.simapi.Simapi.read(Simapi.java:281)
> at com.alkacon.simapi.Simapi.read(Simapi.java:253)
> ...
>
>
> Any idea how I can "fix" my images for OpenCms to like them?
>
> I have already tried with ImageMagick with "-quality 85 -resize 50%
> -colorspace RGB" without success.
>
> Best regards,
> Yves
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120418/2cd2fd62/attachment.htm>
More information about the opencms-dev
mailing list