forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: caliph on February 23, 2005, 02:53:27 am

Title: Supported Image Formats
Post by: caliph on February 23, 2005, 02:53:27 am
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.
Title: Re: Supported Image Formats
Post by: Joachim Müller on February 23, 2005, 07:48:59 am
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:
Quote
INSERT 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
Title: Re: Supported Image Formats
Post by: WebJorge on June 17, 2005, 09:00:44 am
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~
Title: Re: Supported Image Formats
Post by: WebJorge on June 19, 2005, 08:24:52 am
HEY! CAN SOMEONE RESPONDED TO MY QUESTION AND GIVE ME SOME HELP OVER HERE!!!!!!!!

PLEASE!!!!!!
Title: Re: Supported Image Formats
Post by: kegobeer on June 19, 2005, 01:34:02 pm
Thanks for shouting at me.  >:(  I just love that.  Rules (http://coppermine.sourceforge.net/faq.php#lamesupport)

Have you tried searching the forums yet?  There are posts that talk about allowed file types - take a little time and look around.
Title: Re: Supported Image Formats
Post by: WebJorge on June 20, 2005, 06:31:37 am
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!
Title: Re: Supported Image Formats
Post by: kegobeer on June 20, 2005, 02:01:31 pm
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
Title: Re: Supported Image Formats
Post by: WebJorge on June 21, 2005, 08:46:06 am
Thanks a lot kegobeer, you where lot's of help to me!

Thanks again!

~Jorge~