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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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