View Full Version : Error creating thumbnail! Error code: 6
July 5th, 2008, 12:20 AM
Getting this error with imagemagick as the image processor and trying to upload a png file.
I can do the upload just fine under GD2.
Any ideas? Is there a library that I need to install for png files?
July 5th, 2008, 09:11 AM
Yes it would appear your imagemagick does not support png files. You need to totally recompile imagemagick and the necessary libraries to use imagemagick otherwise stick with GD2
PhotoPost PHP Photo Sharing Photo Gallery ImageMagick Installation Guide (http://www.photopost.com/howtoinstall-php.html)
July 5th, 2008, 10:52 AM
I recompiled with the instructions you provided Chuck, and the PNG lib compiled ok but still the same error.
Is there a way I can test if png support is installed with imagemagick?
July 5th, 2008, 10:59 AM
As long as there are no errors you should be okay on compile but those instructions essentially come from Imagemagick site since your dealing with their server software and its installation. If things work with GD2 then there has to be an issue compiling Imagemagick with PNG support on that server. You can see when running the configure command via ssh scan back when its done and see what support was enabled.
July 5th, 2008, 01:47 PM
This is what I get:
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.
Host system type : i686-redhat-linux-gnu
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=no no
Module support --with-modules=no no
GNU ld --with-gnu-ld=yes yes
Quantum depth --with-quantum-depth=16 16
BZLIB --with-bzlib=yes yes
DPS --with-dps=yes yes
FlashPIX --with-fpx=no no
FreeType 2.0 --with-ttf=yes yes
GhostPCL None pcl6 (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-dot=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
Magick++ --with-magick-plus-plus=yes yes
PERL --with-perl=no no
PNG --with-png=yes yes
TIFF --with-tiff=yes yes
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes
X_PRE_LIBS = -lSM -lICE
X_LIBS = -L/usr/X11R6/lib
Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.2.3
CC = gcc
CFLAGS = -g -O2 -Wall -pthread
CPPFLAGS = -I/usr/local/include
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/usr/local/lib -L/usr/X11R6/lib -lfreetype -lz -L/usr/lib
LIBS = -lMagick -ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -lpthread
CXX = g++
CXXFLAGS = -pthread
So png is being compiled into Imagemagick... this is a head scratcher for sure.
July 5th, 2008, 02:05 PM
Ok... I got it to work.
went and downloaded the latest libpng and compiled.
./configure --enable-lzw=yes --enable-shared=yes --disable-static --without-perl
Works good now. thanks for the help
July 5th, 2008, 02:37 PM
yep problem with your png library on the server ;)
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.