forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: hanzie on May 16, 2008, 11:46:52 am
-
Hello again,
I got a question this time and according to the board rules, you need to make a separate topic about each problem or issue.
So sorry in advance for this post :)
Why do the Filetypes of uploaded thumb and existing image have to be the same? (except that it is coded in the changeThumb.php).
If i change that line that validates this:
if ($mime_content_image['content'] == 'image' && (strtoupper($matches[2]) != strtoupper($tmatches[2]))){ // the orig file is an image
//we allow only thumbs of the same type orig=jpg, then thumb has to be jpg too
cpg_die(ERROR, sprintf("Filetypes of uploaded and existing image do not match ... needs to be ".$tmatches[2], $CONFIG['allowed_file_extensions']), __FILE__, __LINE__);
}
Would i then be able to use a (for example) a .gif as thumb for a .jpg file?
Or is this also coded in Coppermine that you need the same filetypes for the thumbs and images, because otherwise it breaks things?
Just wanted to know that before getting into trouble ;)
Thanks in advance
-
Why do you need to do that?
Read in the code... we allow only thumbs of the same type orig=jpg, then thumb has to be jpg too
If it is there, it has a sence.
-
@fabri thank for your reply.
Never mind my post, got already what i wanted :)
Sorry to bother everyone here.
-
For the benefit of others with similar issues you should post what you actually did to solve your issue. That's the point of a support board.