GIF and BMP GIF and BMP
 

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

GIF and BMP

Started by thespaceport, June 21, 2004, 12:40:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thespaceport

How do you setup Coppermine 1.3 so that it can accept gif and bmp file extensions to be uploaded to albums?  I have seen a gif on another Coppermine gallery but don't know how to set it up on mine.

Thanks!

Joachim Müller

GD doesn't support GIFs, but ImageMagick does (although without compression, resulting in ridiculously large file sizes for intermediates and thumbs). This is a legal issue (lzw patents from unisys). If you're webhosted, you can't change this anyway. Refer to the FAQ for details.

GauGau

P.S. Any special reason for posting this question on the "bbs integration" sub-board? I had to move the thread to the proper board, which means I'm reluctant to answer your question in detail... :(

thespaceport

Thanks for the info.

Sorry about posting it in the wrong section, I forgot where I was.  Thanks for answering my question despite my ability to navigate properly.

Jamie Lee

Is there any other possible way to upload a gif? Because I downloaded ImageMagick and the installation instructions are about as greek to me as they could possibly get

omniscientdeveloper

You can upload a gif in "document" format, meaning the actual image won't show. You'll get the coppermine document thumbnail instead. Once the user goes to the fullsize view the image will show, but not within Coppermine.

You can change the GIFs to document format by editting the filetypes table and changing "image" to "document" for the gif extension. You'll need to use phpMyAdmin to do this.


-omni

myk

Quote from: omniscientdeveloper on July 08, 2004, 02:41:50 AM
You can upload a gif in "document" format, meaning the actual image won't show. You'll get the coppermine document thumbnail instead. Once the user goes to the fullsize view the image will show, but not within Coppermine.

You can change the GIFs to document format by editting the filetypes table and changing "image" to "document" for the gif extension. You'll need to use phpMyAdmin to do this.
hate to dredge this up, but gaugau pointed out this thread in another thread... ( i used search ;) )

anyway, with the above... are you saying that we should be able to upload the file and then edit the DB or ? i'm not exactly sure what you mean. i have a gif, and i know i'll have more. i dont care about a thumbnail, i just want it in the gallery. i checked the documentation and tutorials (menu at top) but couldn't find any relevant information.

so, what's the step by step process?

thanks in advance :D

Casper

#6
To upload gif files in version 1.3  (with GD), you need to change the entry in the database 'filetypes' table.
Change the entry for gif from image to document.

Then you can upload gifs, but they will be given the generic document thumb.  Just use the custom thumb method to give it it's own thumb.  If it is a small gif, just make a copy called thumb_picname.gif, and ftp it into the same folder as the actual file.

Note, in version 1.4 gif image uploads are supported if your server supports it.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

myk

groovy. thanks so much. ;D

Mac

I've just noticed that the latest version of GD does now support GIF again:

http://www.boutell.com/gd/

Apparently the patent expired. You got to laugh at Unisys.
Wouldn't it be cool to make thumbnails of animated GIFs? They're always too big...

No help to me though, my hosted service is still stuck on an older version of GD.

kegobeer

If you search the forums, you'll find I've already posted a hack that allows 1.3.2 to work with GIFs as long as you have GD v2.0.28, which is bundled with PHP 4.3.9 and 5.0.2.  If you do a little more reading at boutell.com, you'll see that animated GIFs may be supported in an upcoming release, but until then you can create a thumbnail of an animated GIF, it just won't be animated.

1.4.0 has GIF support for GD v2.0.28+.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots