unable to upload gif and bmp pictures unable to upload gif and bmp pictures
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

unable to upload gif and bmp pictures

Started by cas, March 11, 2005, 09:24:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cas

I've recently set up coppermine gallery, and all has worked fine, except for uploading of gif and bmp, actually only JPG pictures gets uploaded successfully...

When I try to upload a bmp pic, I get the message "Invalid GD extension", and that the file was not placed.

any way to fix this?

Joachim Müller

Short answer: that's expected behaviour.

Long answer: If you use GD as image library, you simply can not use bmp files (a similar thing applies to GIFs, depending on your version of GD - see http://forum.coppermine-gallery.net/index.php?topic=9407.0). Convert your bmp file on your client before you upload it - not by just renaming the extension (will lead you nowhere), but by actually using your favorite desktop app (e.g. MS Paint or IrfanView) to open the file and use the "save as..." dialog to convert it to jpg or png. You can even batch-convert several BMPs at once (refer to the batch-converting tutorial). Even if GD would support BMPs, it's silly to have them on your web server: they are uncompressed and thus use up enormous amounts of space, and not every user (depending on OS and browser) will be able to see them.

Joachim