Bug #21851
closedImage processing; Image Magick operation "combining images" failed
0%
Description
Running the INSTALL tool and the image processing operation cause an error. I reproduced that using typo3winstaller.
The image processing operation does not show both the reference image and the server image. That's for:
Combine using a GIF mask with only black and white and
Combine using a JPG mask with graylevels.
All other operations work as expected.
The problem has also GIFBUILDER effects. It seems to me the GIFBUILDER is not able to render text. Only a graphic appears. The GIFBUILDER template looks simple like that
temp.top1_blog = COA
temp.top1_blog {
10 = IMAGE
10.file = GIFBUILDER
10.file {
XY = 800, 100
backColor = red
10 = TEXT
10 {
text = HALLO WELT
fontSize = 15
fontColor = white
niceText = 1
offset = 150, 10
}
- Logo
110 = IMAGE
110 {
file = ..../...../*.gif
offset = 80, 10
}
} #gifbuilder end
} #temp end
and shows the red block with the image on the left. Only the text is not there.
(issue imported from #M13024)
Files
Updated by Jens Schroeder-Fuerstenberg almost 15 years ago
that has also effects on RTE insert image "Image Magick". Inserting plain image works.
Updated by Stefano Kowalke almost 15 years ago
Could you provide more informations please, like the error message, the output of "Current configuration" in 4: Image Processing. (Starts with "ImageMagick enabled:") and your server (I guess XAMPP)
Updated by Joerg Hauke almost 15 years ago
There is also a problem in the install tool.
Image processing -> combining images
That's wrong:
xxx +profile '*' -compose +matte over "xxx/sysext/install/imgs/jesus.jpg" "xxx/typo3temp/temp/ddd33de483522fad7f8bc3e7e0cc6ffb.png" "xxx/typo3temp/install_44f1273ab1.jpg"
"over" has to be before "+matte" I think. I just turned it using the commandline and it created an image
xxx +profile '*' -compose over +matte "xxx/sysext/install/imgs/jesus.jpg" "xxx/typo3temp/temp/ddd33de483522fad7f8bc3e7e0cc6ffb.png" "xxx/typo3temp/install_44f1273ab1.jpg"
I'm using xampp
Updated by Stefano Kowalke almost 15 years ago
@ Joerg:
Yes, in my installation "over" is before "+matte" out of the box.
/opt/local/bin/composite +profile '*' -compose over +matte "xxx".
Updated by Jens Schroeder-Fuerstenberg almost 15 years ago
@ Stefano:
Sorry for being late. I hope the information below is of some help
the test site has following configuration:
WINSTALLER Testsite (taken from typo3.org)
GraphicsMagick enabled: 1
GraphicsMagick path: C:\TYPO3_4.3.0\GraphicsMagick\ ()
GraphicsMagick path/LZW: C:\TYPO3_4.3.0\GraphicsMagick\ ()
Version 5/GraphicsMagick flag: gm
GDLib enabled: 1
GDLib using PNG:
GDLib 2 enabled: 1
IM5 effects enabled: -1 (Blurring/Sharpening with IM 5+)
Freetype DPI: 96 (Should be 96 for Freetype 2)
Mask invert: 0 (Should be set for some IM versions approx. 5.4+)
File Formats: gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai
The error messages are:Combine using a GIF mask with only black and white
C:\TYPO3_4.3.0\GraphicsMagick\gm.exe convert +profile '*' -colorspace GRAY +matte "C:/TYPO3_4.3.0/htdocs/Testsite/typo3/sysext/install/imgs/blackwhite_mask.gif" "C:/TYPO3_4.3.0/htdocs/Testsite/typo3temp/temp/81d8524f66a1f67badd53753cd002fe9.gif"
C:\TYPO3_4.3.0\GraphicsMagick\gm.exe composite +profile '*' -compose +matte over "C:/TYPO3_4.3.0/htdocs/Testsite/typo3/sysext/install/imgs/greenback.gif" "C:/TYPO3_4.3.0/htdocs/Testsite/typo3/sysext/install/imgs/jesus.jpg" "C:/TYPO3_4.3.0/htdocs/Testsite/typo3temp/temp/81d8524f66a1f67badd53753cd002fe9.gif" "C:/TYPO3_4.3.0/htdocs/Testsite/typo3temp/install_44f1273ab1.jpg"
Combine using a JPG mask with graylevels
C:\TYPO3_4.3.0\GraphicsMagick\gm.exe convert +profile '*' -colorspace GRAY +matte "C:/TYPO3_4.3.0/htdocs/Testsite/typo3/sysext/install/imgs/combine_mask.jpg" "C:/TYPO3_4.3.0/htdocs/Testsite/typo3temp/temp/e8d41984d46583f7bbed7622245b3204.gif"
C:\TYPO3_4.3.0\GraphicsMagick\gm.exe composite +profile '*' -compose +matte over "C:/TYPO3_4.3.0/htdocs/Testsite/typo3/sysext/install/imgs/combine_back.jpg" "C:/TYPO3_4.3.0/htdocs/Testsite/typo3/sysext/install/imgs/jesus.jpg" "C:/TYPO3_4.3.0/htdocs/Testsite/typo3temp/temp/e8d41984d46583f7bbed7622245b3204.gif" "C:/TYPO3_4.3.0/htdocs/Testsite/typo3temp/install_fcaf26c521.jpg"
My configuration is (typo3 hosted on hosteurope webpack M):
ImageMagick enabled: 1
ImageMagick path: .../cgi-bin/ (4.2.9)
ImageMagick path/LZW: .../cgi-bin/ (4.2.9)
Version 5/GraphicsMagick flag:
GDLib enabled: 1
GDLib using PNG: 0
GDLib 2 enabled: 1
IM5 effects enabled: 0 (Blurring/Sharpening with IM 5+)
Freetype DPI: 96 (Should be 96 for Freetype 2)
Mask invert: 0 (Should be set for some IM versions approx. 5.4+)
File Formats: gif,jpg,jpeg,tif,bmp,pcx,tga,png
The error messages are:
Combine using a GIF mask with only black and white
.../cgi-bin/convert +profile '*' -colorspace GRAY +matte '/.../typo3/sysext/install/imgs/blackwhite_mask.gif' '/.../typo3temp/temp/a35a1dd35d919cdb251ffae542f80668.gif'
.../cgi-bin/combine +profile '*' -compose over +matte '/.../typo3/sysext/install/imgs/greenback.gif' '/...typo3/sysext/install/imgs/jesus.jpg' '/.../typo3temp/temp/a35a1dd35d919cdb251ffae542f80668.gif' '/.../typo3temp/install_44f1273ab1.jpg'
Combine using a JPG mask with graylevels
.../cgi-bin/convert +profile '*' -colorspace GRAY +matte '/.../typo3/sysext/install/imgs/combine_mask.jpg' '/.../typo3temp/temp/713e6567d2a2db3a1e92c7faf5b82044.gif'
.../cgi-bin/combine +profile '*' -compose over +matte '/.../typo3/sysext/install/imgs/combine_back.jpg' '/.../typo3/sysext/install/imgs/jesus.jpg' '/.../typo3temp/temp/713e6567d2a2db3a1e92c7faf5b82044.gif' '/.../typo3temp/install_fcaf26c521.jpg'
Updated by Stefano Kowalke almost 15 years ago
@ Joerg:
I found this comment in source (in class.tx_install.php at line 5617):
// Because of some weird incompatibilities between ImageMagick 4 and 6 (plus GraphicsMagick), it is needed to change the parameters order under some preconditions
If you compare the output from the Win with the Linux system, you could see that T3 changing the parameter order.
@ Jens:
The issue occured in both installations? Did you check php logfiles?
The error messages are: ...
These messages aren´t errors, but commands at commandline to call ImageMagick and process the images.
Btw: You should raise your IM Version to 6.5.8, if you could.
Updated by Jens Schroeder-Fuerstenberg almost 15 years ago
@ Stefano:
sorry for providing the commands. I'm not a developer and php is a hidden land to me.
However, the only errors I found at the log file are:
Core: Error handler (FE): PHP Warning: implode() [function.implode]: Invalid arguments passed in /.../t3lib/class.t3lib_timetrack.php line 339
Core: Error handler (FE): PHP Warning: end() [function.end]: Passed variable is not an array or object in /.../t3lib/class.t3lib_timetrack.php line 339
Even the result (see post 15 Dec) is identical the errors do not occur at the WINSTALLER test site and they not occur when running the install tool on both the test site and my backend. In fact the log file is clean related to Install problems.
I encountered some runtime errors when created a new site with PREVIEW conditions the recent days. So it seems to me the errors at the log file base on a different error in class.t3lib_timetrack.php line 339.
btw: the IM version was delivered with TYPO3 and I have not enough experience to install the new version on my webspace. That means not that I am not be able to upload the files, but comparing the files on my webspace and the files of the 6.5.8 version shows significant differences which I can't assess.
Updated by Stefano Kowalke almost 15 years ago
No problem about the commands. Good to know that T3 called the right commands.
Let resume what we have (Please correct me if I am on the wrong way):
You installed T3 on two different platforms. It looks like T3 called the right IM/GM commands on commandline but doesn´t shows any combined pictures. There a no related errors at the log.
I assume, that this error occur only during "combining images" process?
Without a look into your install tool its really hard to find the error. But maybe you could provide some screenshots of the "Basic configuration" Section from "GDLib:" until "Check database:" plus the values starts with [GFX] at the very bottom on this page.
Also a screenshot from the "Image Processing:" page; only the part from "Combining images:
Combining images" till "Info:".
Updated by Jens Schroeder-Fuerstenberg almost 15 years ago
Good evening Stefano,
Your summary is correct. I uploaded a zip containing the screenshots required.
Thanks for your assistance.
Updated by Joerg Hauke almost 15 years ago
@Stefano Cecere Kowalke I can't find this comment line. My file ends before that line.
I looked in this file: typo3\sysext\install\mod\class.tx_install.php.
Updated by Jens Schroeder-Fuerstenberg almost 15 years ago
Good news; the INSTALL problem is solved by deactivating im_useStripProfileByDefault . I wonder that I haven't found any specific remarks on that issue. Only a general statement on the new image rendering was given in NEWS.txt.
I also wonder that the INSTALL tool advertises ImageMagick 4.2.9 and the INSTALL.txt recommends GraphicsMagick. Presumably one has to be the developer to understand that.
The GIFBULDER problem still exists. The GIFBUILDER combines images but doesn't render text on an image.
Updated by Jens Schroeder-Fuerstenberg almost 15 years ago
better news. After maintenance work by the webspace host the GIFBUILDER performs as expected. All work fine right now. I propose to close the issue.