Flash and Movie Sizes Flash and Movie Sizes
 

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

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.