[postgis-devel] [PostGIS] #1974: Imagemagick generate.c produces crappy images under windows

PostGIS trac at osgeo.org
Tue Sep 4 04:23:37 PDT 2012


#1974: Imagemagick generate.c produces crappy images under windows
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 I'm not sure if this is just a windows issue or if it is because I am
 using a newer imagemagick.  I'm using the latest binaries for windows from
 here: http://www.imagemagick.org/script/binary-releases.php#windows

 ImageMagick-6.7.9-3-Q16-windows.zip

 Anyrate there are 2 issues which I've found work-arounds for and hopefully
 these changes won't screw everyone else on other OS

 1) calls like

 {{{
 convert tmp%d.png \\( +clone -channel A -separate +channel -negate
 -background black -virtual-pixel background -blur 0x3 -shade 120x55
 -contrast-stretch 0%% +sigmoidal-contrast 7x50%% -fill grey50 -colorize
 10%% +clone +swap -compose overlay -composite \\) -compose In -composite
 tmp%d.png
 }}}

 I have to change to


 {{{
 convert tmp%d.png ( +clone -channel A -separate +channel -negate
 -background black -virtual-pixel background -blur 0x3 -shade 120x55
 -contrast-stretch 0%% +sigmoidal-contrast 7x50%% -fill grey50 -colorize
 10%% +clone +swap -compose overlay -composite ) -compose In -composite
 tmp%d.png
 }}}

 Because with the \\ it complains about

 {{{
  no decode delegate for this image format `\('
 }}}
 and creates blurry blue images


 It also doesn't like RGB and Alpha colors definitions in styles.conf, so
 I've had to hack my style.conf to use named colors.
 It gives errors like:

 {{{
 convert.exe: unable to open image `'#00ff0080'': No such file or directory
 @ err
 or/blob.c/OpenBlob/2641.
 }}}

 I'm going to work on that a bit more to see if I can still keep RGB/RGBA
 or at least map it to same colors as before or come up with REALLY bizarre
 colors.

 Unfortunately don't have Hudson around to complain when I screw Linux
 users.  Hopefully will have a Debian replacement soon, but I want to get
 Winnie able to build everything except possibly the PDF before I explore
 unknown Debian waters.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1974>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list