Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: Filetypes of thumbs and images  (Read 3550 times)

0 Members and 1 Guest are viewing this topic.

hanzie

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[Solved]: Filetypes of thumbs and images
« on: May 16, 2008, 11:46:52 am »

Code: [Select]
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
« Last Edit: May 17, 2008, 07:29:46 am by Joachim Müller »
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Filetypes of thumbs and images
« Reply #1 on: May 16, 2008, 08:04:24 pm »

Why do you need to do that?

Read in the code...
Quote
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.
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

hanzie

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Filetypes of thumbs and images
« Reply #2 on: May 17, 2008, 12:05:44 am »

@fabri thank for your reply.

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

Sorry to bother everyone here.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: Filetypes of thumbs and images
« Reply #3 on: May 17, 2008, 07:30:25 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.