JPEG hassles

The solution was to use the convert utility from ImageMagick to automatically force all images to RGB color space.

However, even after this the thumbnails I generated were ridiculously big (500KB instead of 4KB). After some investigation I noticed that some color profiles had been included to the image files. Again, convert was able to fix this.

The options used here were:
-colorspace rgb +profile "*"

Bug has been filed on adding support for these to the image datatype in MidCOM datamanager.

As an addition, it looks like JPEG is now having patent issues, like the GIF format some years ago. Time for inventing a patent-free photography format?

Read more Midgard posts.