Default Video Size Default Video Size
 

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

Default Video Size

Started by pftq, March 06, 2007, 04:48:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pftq

In what file is it determined that videos have 320x240 size? I'm trying to get it to have a default of 640x480.

pftq

Don't mean to double-post but I'm sure there's an answer..  ???

Thanks

Joachim Müller


pftq

I can't find a topic that actually explains how to counter it. :-\ Many do not have replies and those that do, do not actually say anything of a solution.

I'm asking for what file tells the Coppermine to put 0x0 when dimensions aren't found.  I changed the default value in the mySQL but apparently that is not the 0x0 being used (it is in a PHP file).

Thanks

Nibbler

It's in the theme system here


        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 you don't have that code in your theme.php then copy the theme_html_picture() function from the sample theme into your theme and modify your copy.

pftq

Exactly what I'm looking for - thanks very much! :D

pftq

I'm looking for a more direct solution if possible.  Instead of detecting when the video is 0x0, is it possible just to set all videos to 640x480 during the upload/batch-add?