Call to undefined function imagecreatefrombmp

Call to undefined function imagecreatefrombmp

Postby Satras » Jan 13th, '09, 22:21

LZD has informed me via ICQ that there seems to be a general Problem in Uploading BMP Files.

I tested it on my site and got the below error.

Code: Select all
Fatal error: Call to undefined function imagecreatefrombmp() in /www/htdocs/w0083c9a/upload.tripax.de/index.php on line 682


Can you check ?
Image
Image
Image
Image
Image
User avatar
Satras
Site Admin
 
Posts: 57
Joined: Jul 22nd, '07, 21:27
Location: Germany

Re: Call to undefined function imagecreatefrombmp

Postby LZD » Jan 14th, '09, 11:03

Hello from Russia dear friends. I found serveral problems with gis.
1. it cant thumbnail bmp files because there is no function imagecreatefrombmp in PHP. Thanks Satras for posting this problem.
2. If image file contains symbol # like "1blabla#blabla.jpg" it also cant be thumbnail
3. Footer dont print in preview ( 1 click on thumbnail )and there is no directory tree there. and cat print coment there.



here i attached srceen some sort of gallery it look perfekt i think but i cant do my gallery look like on screen =)
if you want to see pass 4
here is another one gallery http://anime-vip.info/ in this gallery i love that file name upon the thaumbnail and rwsolution under it
P.S gallery on screen based on gis =)
P.P.S how to cut long filename it looks ugly when 1 file name stay upon another or how to do 2 strings for file name.
Attachments
scrin.JPG
LZD
 
Posts: 6
Joined: Jan 13th, '09, 21:11

Re: Call to undefined function imagecreatefrombmp

Postby Gussoh » Jan 15th, '09, 14:14

I hate PHP IDE:s for not telling when using functions that do not exist.

just do a search and replace with imagecreatefrombmp -> imagecreatefromwbmp
You can also use imagemagick instead.

I'll try and check the other bugs later. There is a known bug with PHP and escapeshellarg that might possibly cause some problems. But escapeshellarg it is only used if you are using imagemagick.

LZD: you've got a cool archive!
Gussoh
 
Posts: 31
Joined: Jul 24th, '07, 13:45

Re: Call to undefined function imagecreatefrombmp

Postby LZD » Jan 16th, '09, 22:52

if set imagecreatefrombmp -> imagecreatefromwbmp it will that sayfilename.bmp is not a wbmp file and in thumbnail and preview will be black picture
and i cant set imagemagick i setup ImageMagick-6.4.8-Q16 then i change
$conf["path_to_imagemagick_convert"] = "C:\TOOLS\ImageMagick-6.4.8-Q16\convert" ; /* set to false to disable imagemagick or to a correct path if convert cannot be found automatically (Ex: "/usr/local/bin/convert") */
and disable gd
is allways say that there is no gd or imagemagick
i try to change if(getOS() != "UNIX") { /* needs to be fixed if imagemagick is run under windows */
to
if(getOS() != "WINDOWS") { /* needs to be fixed if imagemagick is run under windows */
but useless =\
what i do wrong?
LZD
 
Posts: 6
Joined: Jan 13th, '09, 21:11

Re: Call to undefined function imagecreatefrombmp

Postby Gussoh » Jan 17th, '09, 07:56

Great report!

Looks like I did a mistake there. wbmp is not the same thing. seems as if GD does not support BMP at all. There are a few conversion scripts available on the net, but neither is very good.
I'll probably have to remove BMP-support with GD.

But you should be able to use convert. When specifying a windows path you have to use "\\" though. Try setting you'r path to
$conf["path_to_imagemagick_convert"] = "C:\\TOOLS\\ImageMagick-6.4.8-Q16\\convert"
Gussoh
 
Posts: 31
Joined: Jul 24th, '07, 13:45

Re: Call to undefined function imagecreatefrombmp

Postby LZD » Jan 17th, '09, 19:09

useless =\
LZD
 
Posts: 6
Joined: Jan 13th, '09, 21:11

Re: Call to undefined function imagecreatefrombmp

Postby Gussoh » Jan 17th, '09, 19:17

hmm, strange. I don't really know what to do then. :/

you should have no problems with running convert from windows. strange..
Gussoh
 
Posts: 31
Joined: Jul 24th, '07, 13:45


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron