Bogus input colorspace” for “convert” command when convertin
Posted: 2011-12-26T14:39:55-07:00
We were upgraded from ImageMagick 6.5.x to 6.6.x when we upgraded our server to Ubuntu Server 11.10 Oneiric Ocelot (from 10.04 Lucid Lynx) and this ImageMagick "convert" command stopped working. It's part of the free and open source MapKnitter.org map rectifying service by PublicLaboratory.org.
Lines 191 and on of /app/models/warpable.rb (see source link below) typically generate something like:
Which is now throwing:
I know it's a complex command; the simple version:
actually works without errors. So something in the longer command is causing trouble. Apologies in advance for a kind of ridiculously long list of modifiers.
Adding -colorspace RGB in various locations doesn't seem to help, as has been suggested in some forums I've perused.
http://www.imagemagick.org/script/comma ... colorspace
Crappy. Not making much progress. Please help!
Context here: https://github.com/jywarren/mapknitter/issues/76
Lines 191 and on of /app/models/warpable.rb (see source link below) typically generate something like:
Code: Select all
convert -background transparent -contrast-stretch 0 3545-IMG_5407.JPG -crop 4716x4716+0+0! -background transparent -flatten -matte -virtual-pixel white +antialias -distort Perspective '0,0 0,3746 3648,0 1334,0 3648,2736 3901,1458 0,2736 2434,4716' -background transparent -flatten +repage 3545.tif
Code: Select all
convert: Bogus input colorspace. `JPEGLib' @ warning/tiff.c/TIFFErrors/493.
Code: Select all
convert 3545-IMG_5407.JPG 3545.tif
Adding -colorspace RGB in various locations doesn't seem to help, as has been suggested in some forums I've perused.
http://www.imagemagick.org/script/comma ... colorspace
Crappy. Not making much progress. Please help!
Context here: https://github.com/jywarren/mapknitter/issues/76