Re: Imagemagick PHP stopped working on update
Posted: 2016-05-30T14:11:16-07:00
the site is hosted on a linux server. I am using dreamweaver cc to edit the php files.Bonzo wrote:I have lost track are you on a Linux or windows server?
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=29747
the site is hosted on a linux server. I am using dreamweaver cc to edit the php files.Bonzo wrote:I have lost track are you on a Linux or windows server?
Your ISP has NOT installed (properly?) lscm or it would show in the list of delegates. I believe that is the root cause of your problem! I mentioned this on the second page of this topic at viewtopic.php?f=2&t=29747&start=15#p133825. If they claim to have installed it, it either did not install correctly or they did not re-install Imagemagick afterwards.Version: ImageMagick 6.9.3-9 Q16 x86_64 2016-05-04 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo djvu fontconfig freetype gslib jng jpeg ltdl openexr pangocairo png ps rsvg tiff wmf x xml zlib
Code: Select all
convert -size 200x200 xc:black -fill white -draw "rectangle 50,50 150,150" test1.jpg
Code: Select all
convert \( 3_Queens_Parade_300_x_220_8.jpg -write mpr:image +delete \) \
\( 045a-top.png -write mpr:edge_top +delete \) \
\( 045a-bottom.jpg -rotate 180 -write mpr:edge_btm +delete \) \
mpr:image -alpha set -bordercolor 'rgb(107,15,15)' -border 80 \
-compose Dst -frame 60x60+60 -compose over \
-transverse -tile mpr:edge_btm -draw 'color 1,0 floodfill' \
-transpose -draw 'color 1,0 floodfill' \
-transverse -tile mpr:edge_top -draw 'color 1,0 floodfill' \
-transpose -draw 'color 1,0 floodfill' \
mpr:image -gravity center -compose over -composite \
result.jpg
Code: Select all
convert -list configure
Code: Select all
color 1,0 floodfill
Code: Select all
-draw @mydraw.txt
Code: Select all
-draw @/path/to/mydraw.txt
Single quotes work on the 'rgb ()' and that works fine. It now seems to be the draw command with the 'color 1,0 floodfill' being separated.snibgo wrote:Here's another test you can do. Arrange for a text file called, say, mydraw.txt, to contain:Note: there are no quote characters.Code: Select all
color 1,0 floodfill
Then change your command, replacing the entire quoted draw argument with @ and the filename:If this works, then you have a solution. Not a good one, but it would work, and would show that at least one problem is in the quoting. (I suspect your other quotes eg 'rgb()' are also ineffective, but they are not required.)Code: Select all
-draw @mydraw.txt
It is possible that you have two problems: quotes and lcms.
EDIT: You probably need to supply the full pathname to the text file.Code: Select all
-draw @/path/to/mydraw.txt
Code: Select all
convert \( 3_Queens_Parade_300_x_220_8.jpg -write mpr:image +delete \) \
\( 045a-top.png -write mpr:edge_top +delete \) \
\( 045a-bottom.jpg -rotate 180 -write mpr:edge_btm +delete \) \
mpr:image -alpha set -bordercolor 'rgb(107,15,15)' -border 80 \
-compose Dst -frame 60x60+60 -compose over \
-transverse -tile mpr:edge_btm -draw 'color 1,0 floodfill' \
-transpose -draw 'color 1,0 floodfill' \
-transverse -tile mpr:edge_top -draw 'color 1,0 floodfill' \
-transpose -draw 'color 1,0 floodfill' \
mpr:image -gravity center -compose over -composite \
result.jpg
Code: Select all
convert -size 200x200 xc:black -fill white -draw "rectangle 50,50 150,150" test1.jpg
The only other oddity is that you seem to have two pango versions installed, cairo and pangocairo. I do not know enought about them.Delegates (built-in): bzlib cairo djvu fontconfig freetype gslib jng jpeg ltdl openexr pangocairo png ps rsvg tiff wmf x xml zlib
Code: Select all
convert -list format
Code: Select all
convert -debug all -size 100x60 xc:skyblue -fill white -stroke black -draw "rectangle 20,10 80,50" draw_rect.gif
Code: Select all
im6939 convert -size 100x60 xc:skyblue -fill white -stroke black -draw "rectangle 20,10 80,50" draw_rect.gif
I get a lot of results but the ones you have mentioned:fmw42 wrote:It is strange that you say your 'rgb(...)' color works, but -draw does not. -draw depends upon MVG (I believe from xml, though not sure). Might you have an old or badly installed xml? See http://www.imagemagick.org/script/magic ... aphics.php.
When you do
what do you get forCode: Select all
convert -list format
MSVG SVG rw+ ImageMagick's own SVG internal renderer
SVG SVG rw+ Scalable Vector Graphics (RSVG 2.40.12)
Code: Select all
'rgb(107,15,15)'
Code: Select all
-draw 'color 1,0 floodfill'