Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Flash and Movie Sizes  (Read 2684 times)

0 Members and 1 Guest are viewing this topic.

falarious

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Flash and Movie Sizes
« on: November 27, 2005, 02:34:18 am »

Hello there. I would like to know how to seperate the default video size code into "flash files" and "movie files"

Code: [Select]
if ($CURRENT_PIC_DATA['pwidth']==0 || $CURRENT_PIC_DATA['pheight']==0) {
            $CURRENT_PIC_DATA['pwidth']  = 320; // Default width

            // Set default height; if file is a movie
            if ($mime_content['content']=='movie') {
                $CURRENT_PIC_DATA['pheight'] = 240; // Default height

If i change the 320 and the 240 numbers, the movie (mpeg,mov,wmv,etc) files AND flash files change.

I would like to set defaults to both movies and flash.

-david
www.falarious.com
Logged

thejake420

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 79
  • Jakes Jokes - the largest joke site on the web
    • Jakes Jokes
Re: Flash and Movie Sizes
« Reply #1 on: March 05, 2006, 03:51:20 am »

I'm looking for the same answer. I know I can go in and manually change the file sizes, but that would take forever on a large album.

I'd really appreciate a simple code snippet and basic info (open filename.php, find LINE, add CODE below that line).


Jake

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Flash and Movie Sizes
« Reply #2 on: March 05, 2006, 10:54:23 am »

coppermine can't determine the dimensions of a movie file automatically, the only thing you can do (as requested by falarious) is setting a default value. So you have to edit the dimensions of each file, no workaround.
If you need to change the defaults depending on the extension, then you'll have to add another if/then switch.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.