[Solved]: Filetypes of thumbs and images [Solved]: Filetypes of thumbs and images
 

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

[Solved]: Filetypes of thumbs and images

Started by hanzie, May 16, 2008, 11:46:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hanzie

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

Fabricio Ferrero

Why do you need to do that?

Read in the code...
Quotewe allow only thumbs of the same type orig=jpg, then thumb has to be jpg too
If it is there, it has a sence.
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

hanzie

@fabri thank for your reply.

Never mind my post, got already what i wanted :)

Sorry to bother everyone here.

Joachim Müller

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.