Flash and Movie Sizes Flash and Movie Sizes
 

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

Flash and Movie Sizes

Started by falarious, November 27, 2005, 02:34:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

falarious

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

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

thejake420

#1
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

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.