forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: falarious on November 27, 2005, 02:34:18 am

Title: Flash and Movie Sizes
Post by: falarious 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
Title: Re: Flash and Movie Sizes
Post by: thejake420 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
Title: Re: Flash and Movie Sizes
Post by: Joachim Müller 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.