Default Video Size Default Video Size
 

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

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?