coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: pftq on March 06, 2007, 04:48:57 PM

Title: Default Video Size
Post by: pftq on March 06, 2007, 04:48:57 PM
In what file is it determined that videos have 320x240 size? I'm trying to get it to have a default of 640x480.
Title: Re: Default Video Size
Post by: pftq on March 10, 2007, 04:18:16 AM
Don't mean to double-post but I'm sure there's an answer..  ???

Thanks
Title: Re: Default Video Size
Post by: Joachim Müller on March 10, 2007, 11:29:20 AM
search results for "320x240" (http://forum.coppermine-gallery.net/index.php?action=search2;search=320x240)
Title: Re: Default Video Size
Post by: pftq on March 10, 2007, 07:58:52 PM
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
Title: Re: Default Video Size
Post by: Nibbler on March 10, 2007, 08:27:49 PM
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.
Title: Re: Default Video Size
Post by: pftq on March 10, 2007, 09:01:04 PM
Exactly what I'm looking for - thanks very much! :D
Title: Re: Default Video Size
Post by: pftq on March 13, 2007, 03:55:39 AM
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?