Supported Image Formats Supported Image Formats
 

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

Supported Image Formats

Started by caliph, February 23, 2005, 02:53:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

caliph

I am trying to determine what image formats are supported by CPG. Obviously jpg works really well but I would like to store a few tiff images aswell. I tried uploading one to my album and I do not see a thumbnail of the actual image, but rather an icon for a 'file'.  Any help to get the actual thumbnails to appear would be greatly appreciated.

Joachim Müller

depends on the image library you use: GD only has support for jpeg, png and (to some extent, depending on version) for gif. ImageMagick has support for more formats (at least in theory), but I haven't been testing in detail - at least this is what the filetypes table holds for images:
QuoteINSERT INTO CPG_filetypes VALUES ('jpg', 'image/jpg', 'image', '');
INSERT INTO CPG_filetypes VALUES ('jpeg', 'image/jpeg', 'image', '');
INSERT INTO CPG_filetypes VALUES ('jpe', 'image/jpg', 'image', '');
INSERT INTO CPG_filetypes VALUES ('gif', 'image/gif', 'image', '');
INSERT INTO CPG_filetypes VALUES ('png', 'image/png', 'image', '');
INSERT INTO CPG_filetypes VALUES ('bmp', 'image/bmp', 'image', '');
INSERT INTO CPG_filetypes VALUES ('jpc', 'image/jpc', 'image', '');
INSERT INTO CPG_filetypes VALUES ('jp2', 'image/jp2', 'image', '');
INSERT INTO CPG_filetypes VALUES ('jpx', 'image/jpx', 'image', '');
INSERT INTO CPG_filetypes VALUES ('jb2', 'image/jb2', 'image', '');
INSERT INTO CPG_filetypes VALUES ('swc', 'image/swc', 'image', '');
INSERT INTO CPG_filetypes VALUES ('iff', 'image/iff', 'image', '');
So, apparently: no tiff support. You shouldn't use tiff on thi internet anyway, since it's a resource eater, as it stores bitmaps uncompressed, resulting in huge files, which are hard to handle for webservers and image libraries anyway.

Joachim

Joachim

WebJorge

I just installed the latest version of your photo gallery program, and on the Allowed image types, in the Config section, it says All for that field. But I want to specify that I only want to allowed jpg and png extions. Should I just type .jpg, .png in that field or do I have to do it in the php code!?

Also, in the same Config section, where it says All for...

Allowed movie types, Allowed audio types, and Allowed document types, I wanted to disable those three fields. Should I just type none in those fields or do I have to do it in the php code!?

~Jorge~

WebJorge

HEY! CAN SOMEONE RESPONDED TO MY QUESTION AND GIVE ME SOME HELP OVER HERE!!!!!!!!

PLEASE!!!!!!

kegobeer

Thanks for shouting at me.  >:(  I just love that.  Rules

Have you tried searching the forums yet?  There are posts that talk about allowed file types - take a little time and look around.
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

WebJorge

I didn't mean to be rude, but I have searched the board and found this discussion, but my question has nothing to do about which file types are allowed. If you or anybody else could please take their time to read my questions on my post and give me an answer or any kind of help at all, I would gladly be appreciated.

Thanks!

kegobeer

I did read your question.  The documentation covers allowed image/file/document types.  Have you read that yet?  Have you searched for "allowed image types" yet?

http://forum.coppermine-gallery.net/index.php?topic=18082.msg83820
http://coppermine.sourceforge.net/manual.php#config_picture_thumb_advanced
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

WebJorge

Thanks a lot kegobeer, you where lot's of help to me!

Thanks again!

~Jorge~