[Magick-bugs] Composite works locale,
but doesn't work at the Webserver
Andreas Schott
linuxmailing at web.de
Mon Jul 23 14:21:11 PDT 2007
Hello
First: Sorry for my bad english.
After i posted to the Userlist with receiving no answer i try agein
here, because it may be a bug or dependicies are not okay (Perhaps some
packages are not installed). Or should i post to the developers-list?
I use composite to place a logo onto another picture.
At the PC at home it works with
composite -gravity northeast /home/www/web1/html/temp/logofamscho.gif
239.jpg test.jpg
I am in the directory with 239.jpg and composite makes a new file
test.jpg with logofamscho.gif in the upper right edge of the picture
When i login to the webserver with ssh this doesn't work
First more informations:
The Webserver is a VPS-System based on Debian 4.0
web1 at vpsxxx:~$ uname -a
Linux vps832469590.serverpool.info 2.6.9-022stab078.14-enterprise #1 SMP
Wed Jul 19 14:35:02 MSD 2006 i686 GNU/Linux
web1 at vpsxxx:~$ apt-cache policy imagemagick
imagemagick:
Installiert:7:6.2.4.5-0.8
Mögliche Pakete:7:6.2.4.5.dfsg1-0.9
Versions-Tabelle:
7:6.2.4.5.dfsg1-0.9 0
500 http://ftp.de.debian.org testing/main Packages
*** 7:6.2.4.5-0.8 0
500 ftp://ftp.de.netclusive.de testing/main Packages
100 /var/lib/dpkg/status
I am in the directory with 239.jpg and composite makes a new file
test.jpg without logofamscho.gif in the upper right edge of the picture
web1 at vpsxxx:~/html/galerie$ ls -l
insgesamt 1
-rw-r--r-- 1 web1 web1 74292 2007-07-20 23:36 239.jpg
web1 at vpsxxx:~/html/temp$ ls -l
insgesamt 1
-rwxrwxrwx 1 web1 web1 286 2007-07-19 18:47 logofamscho.gif
web1 at vpsxxx:~/html/galerie$ composite -version
Version: ImageMagick 6.2.4 03/30/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
web1 at vpsxxx:~/html/galerie$ composite -gravity
northeast /home/www/web1/html/temp/logofamscho.gif 239.jpg test.jpg
web1 at vps832469590:~/html/galerie$
As you see - no faults. Nothing, and the file test.jpg is built, but it
is the same picture then 239.jpg
So is started debugging:
web1 at vpsxxx:~/html/galerie$ composite -debug all -gravity
northeast /home/www/web1/html/temp/logofamscho.gif 239.jpg test.jpg
22:34:43 0:02 0.010u 6.2.4 Blob composite[3752]:
blob.c/OpenBlob/2196/Blob
read 0 magic header bytes
22:34:43 0:02 0.010u 6.2.4 Cache composite[3752]:
cache.c/DestroyCacheInfo/1658/Cache
destroy
22:34:43 0:02 0.010u 6.2.4 Configure composite[3752]:
configure.c/GetConfigureOptions/486/Configure
Searching for configure
file: "/usr/lib/ImageMagick-6.2.4/config/magic.xml"
22:34:43 0:02 0.010u 6.2.4 Configure composite[3752]:
configure.c/GetConfigureOptions/486/Configure
Searching for configure
file: "/usr/share/ImageMagick-6.2.4/config/magic.xml"
22:34:43 0:02 0.010u 6.2.4 Configure composite[3752]:
configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/usr/share/doc/imagemagick/magic.xml"
22:34:43 0:02 0.010u 6.2.4 Configure composite[3752]:
configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/usr/share/ImageMagick-6.2.4/magic.xml"
22:34:43 0:02 0.010u 6.2.4 Configure composite[3752]:
configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/home/www/web1/.magick/magic.xml"
22:34:43 0:02 0.010u 6.2.4 Configure composite[3752]:
configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "magic.xml"
22:34:43 0:02 0.010u 6.2.4 Configure composite[3752]:
magic.c/LoadMagicList/672/Configure
Loading magic file "/usr/share/ImageMagick-6.2.4/config/magic.xml" ...
22:34:43 0:02 0.020u 6.2.4 Blob composite[3752]:
blob.c/OpenBlob/2196/Blob
read 0 magic header bytes
22:34:43 0:02 0.020u 6.2.4 Resource composite[3752]:
resource.c/AcquireMagickResource/206/Resource
Area: 41kb/41kb/3.96gb
22:34:43 0:02 0.020u 6.2.4 Resource composite[3752]:
resource.c/AcquireMagickResource/206/Resource
Memory: 41kb/41kb/7.91gb
22:34:43 0:02 0.020u 6.2.4 Cache composite[3752]:
cache.c/OpenCache/2830/Cache
open /home/www/web1/html/temp/logofamscho.gif[0] (memory, 41kb)
22:34:43 0:02 0.020u 6.2.4 Blob composite[3752]:
blob.c/OpenBlob/2196/Blob
read 1 magic header bytes
22:34:43 0:02 0.020u 6.2.4 Cache composite[3752]:
cache.c/DestroyCacheInfo/1658/Cache
destroy
22:34:43 0:02 0.020u 6.2.4 Blob composite[3752]:
blob.c/OpenBlob/2196/Blob
read 1 magic header bytes
22:34:43 0:02 0.020u 6.2.4 Coder composite[3752]:
jpeg.c/ReadProfile/595/Coder
Profile: exif, 14403 bytes
22:34:43 0:02 0.020u 6.2.4 Coder composite[3752]:
jpeg.c/ReadJPEGImage/835/Coder
Interlace: nonprogressive
22:34:43 0:02 0.030u 6.2.4 Coder composite[3752]:
jpeg.c/ReadJPEGImage/837/Coder
Data precision: 8
22:34:43 0:02 0.030u 6.2.4 Coder composite[3752]:
jpeg.c/ReadJPEGImage/839/Coder
Geometry: 600x450
22:34:43 0:02 0.030u 6.2.4 Coder composite[3752]:
jpeg.c/ReadJPEGImage/922/Coder
Quality: 86
22:34:43 0:02 0.030u 6.2.4 Coder composite[3752]:
jpeg.c/ReadJPEGImage/1014/Coder
Colorspace: RGB
22:34:43 0:02 0.030u 6.2.4 Coder composite[3752]:
jpeg.c/ReadJPEGImage/1041/Coder
Sampling Factors: 2x1,1x1,1x1
22:34:43 0:02 0.030u 6.2.4 Resource composite[3752]:
resource.c/AcquireMagickResource/206/Resource
Area: 2.1mb/2.1mb/3.96gb
22:34:43 0:02 0.030u 6.2.4 Resource composite[3752]:
resource.c/AcquireMagickResource/206/Resource
Memory: 2.1mb/2.1mb/7.91gb
22:34:43 0:02 0.030u 6.2.4 Cache composite[3752]:
cache.c/OpenCache/2830/Cache
open 239.jpg[0] (memory, 2.1mb)
22:34:43 0:02 0.070u 6.2.4 Resource composite[3752]:
resource.c/AcquireMagickResource/206/Resource
Area: 2.1mb/2.1mb/3.96gb
22:34:43 0:02 0.070u 6.2.4 Resource composite[3752]:
resource.c/AcquireMagickResource/206/Resource
Memory: 2.1mb/4.2mb/7.91gb
22:34:43 0:02 0.070u 6.2.4 Cache composite[3752]:
cache.c/OpenCache/2830/Cache
open 239.jpg[0] (memory, 2.1mb)
22:34:43 0:02 0.070u 6.2.4 Cache composite[3752]:
cache.c/CloneMemoryToMemoryPixels/1429/Cache
memory => memory
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1644/Coder
Image resolution: 72,72
22:34:43 0:02 0.090u 6.2.4 Resource composite[3752]:
resource.c/AcquireMagickResource/206/Resource
Area: 264kb/264kb/3.96gb
22:34:43 0:02 0.090u 6.2.4 Resource composite[3752]:
resource.c/RelinquishMagickResource/756/Resource
Area: 264kb/264kb/3.96gb
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1681/Coder
Interlace: non-progressive
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1695/Coder
Quality: 86
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1736/Coder
Input sampling-factors=2x1,1x1,1x1
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1795/Coder
Storage class: DirectClass
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1797/Coder
Depth: 16
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1803/Coder
Number of colors: unspecified
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1805/Coder
JPEG data precision: 8
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1855/Coder
Image colorspace is RGB
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteJPEGImage/1857/Coder
Sampling factors: 2x1,1x1,1x1
22:34:43 0:02 0.090u 6.2.4 Coder composite[3752]:
jpeg.c/WriteProfile/1452/Coder
exif profile: 14403 bytes
22:34:44 0:03 0.160u 6.2.4 Resource composite[3752]:
resource.c/RelinquishMagickResource/756/Resource
Memory: 41kb/4.1mb/7.91gb
22:34:44 0:03 0.160u 6.2.4 Cache composite[3752]:
cache.c/DestroyCacheInfo/1658/Cache
destroy /home/www/web1/html/temp/logofamscho.gif[0]
22:34:44 0:03 0.160u 6.2.4 Resource composite[3752]:
resource.c/RelinquishMagickResource/756/Resource
Memory: 2.1mb/2.1mb/7.91gb
22:34:44 0:03 0.160u 6.2.4 Cache composite[3752]:
cache.c/DestroyCacheInfo/1658/Cache
destroy 239.jpg[0]
Do you see something, that helps me?
By the way:
convert -geometry 600x600 -resize 200x200 239.jpg test.jpg
and
convert -font /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf -pointsize
12 -fill black -draw "text 450,20 'Testtext'" 239.jpg test.jpg
works properly.
Afterwards i tried the same with a PNG-Logo and a JPG-Logo. No Logo was
included.
Do you see the problem and can help me?
Thank you
Andy
More information about the Magick-bugs
mailing list