coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: omniscientdeveloper on May 28, 2004, 08:29:35 AM

Title: How to use custom thumbnails
Post by: omniscientdeveloper on May 28, 2004, 08:29:35 AM
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.brownfloyd.com%2Ffiles%2Fcust_thmb.gif&hash=29a66357a2d8c7c0725ffae3ef0986c5dfd7fb61)
Order of thumbnails:
Thumbnails are selected by level (user-defined, theme-defined, global) then by type (file-specific, extension-specific, media-specific) in order. User-defined thumbnails are stored in the folder where the file is located. Theme-defined thumbnails are stored in the themes 'images' folder. Global thumbnails are stored within the 'images' folder of the Coppermine root. Thumbnails can be either a 'gif', 'png', or 'jpg'.
     
Types of thumbnails:
File-specific thumbnails must have the same base name as the file. Using the example in the screenshot, its thumbnails could be 'thumb_thailand_waterfall.gif', 'thumb_thailand_waterfall.png', or 'thumb_thailand_waterfall.jpg', chosen in that order.

Extension-specific thumbnails are named after the extension of the file. (Examples: 'thumb_wmv.jpg', 'thumb_wav.jpg'.)

The base name for media-specific thumbnails are 'thumb_movie', 'thumb_document', and 'thumb_audio'. Images use file-specific thumbnails by default.

Uploading:
There are 2 ways to upload custom thumbnails:
     
1. Have an image already uploaded then upload a video via the upload page. (or vice versa) The video will share the thumbnail of the image.
     
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.brownfloyd.com%2Ffiles%2Fcust_thmb_3.gif&hash=9b9842a3048282ccb39baf48ef6d77b661213c2e)

2. FTP upload both the video and (thumbnail or image) then batch-add. If you FTP upload the thumbnail, the thumbnail will be shown instead of the default Coppermine thumbnail on the batch-add page. If you upload an image it will look like the screenshot. However, when the two files are added, the thumbnail of the image will be used by the video.
     
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.brownfloyd.com%2Ffiles%2Fcust_thmb_final.gif&hash=eb9afbf798bf5ecc7566a6c4682ff7e5c51cbfef)
Final result.

Note: If methods 1 is used and the image is deleted, the thumbnail will be deleted also, and the default Coppermine thumbnails will be used. If a previous video has be uploaded via FTP, the thumbnail must be uploaded via FTP to the same folder.

Video uploads are available for cpg1.3.0 (or better) as part of the distribution and for cpg1.2.1 as separate modification. Custom thumbnails aren't supported in versions prior to 1.3.0. Using these instructions, a custom thumbnail can be applied to any file, not just videos.


FAQS:
Title: Re: How to use custom thumbnails
Post by: marx on June 21, 2004, 09:46:32 PM
I get this error when i try to add custom thumbs to a couple of flash files

Warning: getimagesize(albums/broken%20innocense/thumb_broken002.jpg): failed to open stream: No such file or directory in /var/www/html/index.php on line 456


the flash file name is broken002.swf so this should work and I ftpthe thumbs and swfs together and then batch added them, in the admin mode they show up but not in user mode.is this a bug or am I doing something wrong? it seems this problem only appears with flash files with movie files I have no problems

my host runs  PHP Version 4.3.4  and MySQL 3.23.58


Title: Re: How to use custom thumbnails
Post by: omniscientdeveloper on June 22, 2004, 02:53:24 AM
Is the thumbnail actually named "thumb_broken002.jpg" (case-sensitive). Also, try removing the space from the directory name. I have no problem with flash file thumbs. In effect, there's nothing different between a flash thumb and a movie thumb, so if you're not having a problem with those, you shouldn't with this.


-omni
Title: Re: How to use custom thumbnails
Post by: marx on June 22, 2004, 11:51:01 PM
removed the space and it worked,thanks for your help
Title: Re: How to use custom thumbnails
Post by: azPNG on July 05, 2004, 05:09:44 PM
Aight.  I need to know how to do this so I can explain to my members how to do this.  But unfortunately, I DO NOT understand the instructions above.  Can you please post a clear understand of Step 1, 2, 3 so on and so forth.  It is so unclear.  Thanks
Title: Video thumbnails
Post by: geneticfreak on July 05, 2004, 06:16:38 PM
I've been able to get custom thumbnails to work for video, but they only show in the category view. In the album view, only the generic wmv thumbnail is shown.

I'm using 1.3 integrated with Invision Board 1.3

Category view: http://www.eastcoaster.com/gallery/index.php?cat=4
Album view: http://www.eastcoaster.com/gallery/thumbnails.php?album=34
Title: Re: How to use custom thumbnails
Post by: omniscientdeveloper on July 06, 2004, 12:35:06 AM
I have no idea how you managed to get thumbnails with an extension of "wmv" to show without editting the code.  :-\\
(Please explain this, so if there is a bug I can fix it.)

All you have to do to use a custom thumbnail is upload an "image" with the same name. Make sure both are lowercase.

For example:

X.jpg for X.wmv
ttdrpm.jpg for ttdrpm.wmv


-omni
Title: Re: How to use custom thumbnails
Post by: geneticfreak on July 06, 2004, 02:05:34 AM
I honestly don't know either ???. They were originally .jpg and I just changed the extension. It just seemed to work for the category view. I've tried it by just uploading a jpg file, but it never picked it up. I'm on the verge of deleting my Coppermine installation and re-installing it, because it just seems a little buggy all around. The only modification I did to it other than integrating it with my Invision Board was this one (http://mods.invisionize.com/db/index.php/f/1447) that allows Coppermine to mimic the default Invision skin.
Title: Re: How to use custom thumbnails
Post by: omniscientdeveloper on July 06, 2004, 03:19:20 AM
First, make sure you have the copy from the stable branch of CVS. Once you have this, run the update.php script. If you've already done this....


If your video ISN'T in a userpics subfolder, you'll have to upload the thumbnail via FTP to the folder that the video is in named "thumb_"+ your filename + image extension (jpg/png/ or gif).

....So...For your X.wmv video you'll upload an image named:

thumb_X.jpg (note the caps)


This is only if you've uploaded the videos via FTP. If you uploaded them via the upload page, you should be able to do it as previously stated.


QuoteI honestly don't know either

If this patch that you speak of had you edit the functions.inc.php file, then that's probably the reason why you can have "wmv" extensions. I'll have to test this later.



-omni
Title: Re: How to use custom thumbnails
Post by: geneticfreak on July 06, 2004, 04:15:31 AM
I've tried uploading a file like thumb_X.jpg, but it just doesn't seem to pick it up. The other site that I have Coppermine on works just like it is supposed to. I've added a custom thumb just by uploading it to the same directory via FTP after the video was already loaded, and also when uploading them at the same time. Like I said, I think a clean install might solve this and the other problems I'm having. Fortunatley, they are mostly a pain on my end, and the site is still functional without having to rush to get it fixed.

There were three edits to functions.inc.php:

QuoteStep  2:  Open ../cpg/include/functions.inc.php

 A. Find

/**************************************************************************
  Function for managing cookie saved user profile  


    Insert above the blue code



//-- mod_coppermine begin
   define('IS_IPB', true);
   
   // ------------------------------------------------------------//
   //  User Configuration                                         //
   // ------------------------------------------------------------//
   //  Define the path to your ipb.                               //
   //  You can use a relative path from your Coppermie directory  //
   //  Do not use an url                                          //
   //  Example: ../ipb13/index.php                                //
   // ------------------------------------------------------------//
   define('IB_PATH', "../ipb13/index.php");
   
   define('COPPERMINE', true);
   
   if (defined('IS_IPB')) {
   
       // ------------------------------------------------------------//
       //  User Configuration                                         //
       // ------------------------------------------------------------//
       //  Translation of ipb language id to coppermine lang names    //
       // ------------------------------------------------------------//
       $ipb_lang = array('en' => "english", '2' => "german", '3' => "french");
       
       global $HTTP_GET_VARS;
       if (isset($HTTP_GET_VARS['set_lang']) and isset($HTTP_GET_VARS['lang']) ) {
           $HTTP_GET_VARS['lang'] = $ipb_lang[$HTTP_GET_VARS['lang']];
       }
       require (IB_PATH);
       ipb_style();
   }
//-- mod_coppermine end


/**************************************************************************
  Function for managing cookie saved user profile  


 B. Find in function load_template(..)

       $template = fread(fopen($template_file, 'r'), filesize($template_file));  


    Insert above the blue code



//-- mod_coppermine begin
       if (defined('IS_IPB')) {
           global $content;
           if (!empty($content)) {
               $template = $content;
               $template = str_replace("<% COPPERMINE JAVASCRIPT %>",
                                       "<script type=\"text/javascript\" src=\"scripts.js\"></script>",
                                       $template);
           }
       }
       if (!defined('IS_IPB'))
//-- mod_coppermine end


       $template = fread(fopen($template_file, 'r'), filesize($template_file));  


 C. Find in function display_film_strip(..)

?>  


    Insert above the blue code



//-- mod_coppermine begin

function ipb_style(){
   global $content;
   

$styles_array = array(  
               'ul' => "ul {margin-left: 5px; padding: 0px;}",
               'li' => "li {margin-left: 10px;margin-top: 4px;margin-bottom: 4px;padding: 0px;list-style-position: outside;list-style-type: disc;}",
               'a' => "a {text-decoration: none;}\na:hover {text-decoration: underline;}",
               'bblink' => "bblink a {text-decoration: none;}\nbblink a:hover {text-decoration: underline;}",
               '.tableh1' => ".tableh1 {padding-top: 3px;padding-right: 10px;padding-bottom: 3px;padding-left: 10px;}",
               '.tableh1_compact' => ".tableh1_compact {padding-top: 2px;padding-right: 5px;padding-bottom: 2px;padding-left: 5px;}",
               '.tableh2' => ".tableh2 {padding-top: 3px;padding-right: 10px;padding-bottom: 3px;padding-left: 10px;}",
               '.tableh2_compact' => ".tableh2_compact {padding-top: 2px;padding-right: 5px;padding-bottom: 2px;padding-left: 5px;}",
               '.tableb' => ".tableb {padding-top: 3px;padding-right: 10px;padding-bottom: 3px;padding-left: 10px;}",
               '.tableb_compact' => ".tableb_compact {padding-top: 2px;padding-right: 5px;padding-bottom: 2px;padding-left: 5px;}",
               '.tablef' => ".tablef {padding-top: 10px;padding-right: 10px;padding-bottom: 10px;padding-left: 10px;}",
               '.thumb_title' => ".thumb_title {font-weight : bold;padding: 2px;display : block;}",
               '.thumb_caption' => ".thumb_caption {padding: 1px;display : block;}\n.thumb_caption a {text-decoration: underline;}",
               '.thumb_num_comments' => ".thumb_num_comments {font-weight: normal;padding: 2px;font-style : italic;display : block;}",
               '.user_thumb_infobox' => ".user_thumb_infobox {margin-top: 1px;margin-bottom: 1px;}\n".
                                       ".user_thumb_infobox th {font-weight : bold;margin-top: 1px;margin-bottom: 1px;text-align : center;}\n.user_thumb_infobox td {margin-top: 1px;margin-bottom: 1px;text-align : center;}".
                                       ".user_thumb_infobox a {text-decoration: none;}\n".
                                       ".user_thumb_infobox a:hover {text-decoration: underline;}",
               '.sortorder_cell' => ".sortorder_cell {padding: 0px;margin: 0px;}",
               '.sortorder_options' => ".sortorder_options {padding: 0px;margin: 0px;font-weight: normal;white-space: nowrap;}",
               '.navmenu' =>    ".navmenu {font-weight: bold;border-style: none;}\n".
                               ".navmenu img {margin-top: 1px;margin-right: 5px;margin-bottom: 1px;margin-left: 5px;}\n".
                               ".navmenu a {position: relative;display: block;padding-top: 2px;padding-right: 5px;padding-bottom: 2px;padding-left: 5px;text-decoration: none;}\n".
                               ".navmenu a:hover {text-decoration: none;}",
               '.admin_menu_thumb' => ".admin_menu_thumb {border: 1px solid #005D8C;background-position : bottom;font-weight: bold;margin-top: 0px;margin-bottom: 0px;}\n".
                                     ".admin_menu_thumb a {text-decoration: none;display: block;position: relative;padding-top: 1px;padding-bottom: 1px;padding-left: 3px;padding-right: 3px;}\n".
                                     ".admin_menu_thumb a:hover {text-decoration: underline;}",
               '.admin_menu' => "admin_menu {border: 1px solid #005D8C;background-position : bottom;margin-top: 0px;margin-bottom: 0px;text-align: center;}\n".
                               ".admin_menu a {text-decoration: none;display: block;position: relative;padding-top: 1px;padding-bottom: 1px;padding-left: 3px;padding-right: 3px;}\n".
                               ".admin_menu a:hover {text-decoration: underline;}",
               '.comment_date' => ".comment_date {vertical-align : middle;}",
               '.image' => ".image {border-style: solid;border-width:1px;border-color: #000000;margin: 2px;}",
               '.thumbnails' => ".thumbnails {padding: 5px;}",
               '.alblink' =>    ".alblink a {text-decoration: underline;}\n".
                               ".alblink a:hover {text-decoration: underline;}",
               '.catlink' =>    ".catlink {display: block;margin-bottom: 2px;}\n".
                               ".catlink a {text-decoration: underline;}\n".
                               ".catlink a:hover {text-decoration: underline;}",
               '.topmenu' =>    ".topmenu {line-height : 130%;}\n".
                               ".topmenu a {text-decoration : none;}\n".
                               ".topmenu a:hover  {text-decoration : underline;}",
               '.img_caption_table' =>  ".img_caption_table {border: none;width : 100%;margin : 0px;}\n".
                                       ".img_caption_table th {padding-top: 4px;padding-right: 10px;padding-bottom: 4px;padding-left: 10px;}\n".
                                       ".img_caption_table td {padding-top: 6px;padding-right: 10px;padding-bottom: 6px;padding-left: 10px;}",
               );
   $replace_array = array( array(".codebuttons", ".button, .comment_button"),
                           array(".tablepad", ".album_stats"),
                           array(".checkbox", ".radio, .listbox"),
                           array("#photoimg", ".thumbcaption"),
                           array("img.attach", ".thumbnails"),
                         );

   for ($i = 0; $i < count($replace_array); $i++) {
       $pattern = $replace_array[$i][0];
       if (substr($pattern,0,1) == ".") {
           $pattern = "\\".$pattern;
       }
       $pattern = "`".$pattern."`i";
       $content = preg_replace($pattern, $replace_array[$i][0].", ".$replace_array[$i][1], $content);
   }
   if (count($styles_array) ) {
       arsort($styles_array);
       foreach ($styles_array as $key => $style) {
           if (substr($key,0,1) == ".") {
               $key = "\\".$key;
           }
           $pattern = "`^".$key."`";
           if (!preg_match($pattern, $content) ) {
               $content = str_replace("</style>", "\n".$style."\n</style>", $content);
           }
       }
   }
}

//-- mod_coppermine end


?>  
Title: Re: How to use custom thumbnails
Post by: omniscientdeveloper on July 06, 2004, 05:59:20 AM
Yea. Do a clean install. It doesn't look like the code modifies the thumbnail generation functions, but it's possible, that you could've modified something unknowingly.


-omni
Title: Re: How to use custom thumbnails
Post by: Joachim Müller on July 06, 2004, 08:32:00 AM
Quote from: geneticfreak on July 06, 2004, 02:05:34 AMThe only modification I did to it other than integrating it with my Invision Board was this one (http://mods.invisionize.com/db/index.php/f/1447) that allows Coppermine to mimic the default Invision skin.
This is a third party modification that is based on cpg1.2.1 code and will for sure mess up your whole cpg1.3.0 install (making it "buggy" on the way). The use of this mod "Coppermine Goes Invisionboard" is not recommended with cpg1.3.0 (in fact, it's not recommended at all). Imo all your problems come form the usage of this "mod", which is more of a hack, as it messes with coppermine core code.

GauGau
Title: Re: How to use custom thumbnails
Post by: blowndeadline on July 15, 2004, 08:16:09 AM
Ok, I have upgraded my coppermine gallery to the latest version that supports video. I do really appreciate this addition to Coppermine by the way! Great work.
I tested a swf file by uploading the following file:
car1.swf
I also created a screenshot of the file for the thumb called:
thumb_car1.jpg

The thumb is displayed and when clicked, the gallery page with the swf file is on it and plays just fine.
Just so I know, anyone that uploads a swf file must also upload a thumb_file.jpg that matches the original swf file's name correct?
There is no way to automatically generate a thumb from a swf file, or at least from what I know.
If this is correct just let me know. I have currently created a post explaining the entire swf file upload procedure so everyone will know this.
But, now I have to go through 100 swf files and get screenshots of them all when I batch add :\'(, I'll get over that, just glad there isn't 500 swf files!

You can take a look at my Coppermine gallery in action by visiting http://swiftdev.com/gallery2.php
Let me know what you think!
Thanks again for the great improvements to Coppermine!
Mike
Swiftdev
Title: Re: How to use custom thumbnails
Post by: Joachim Müller on July 15, 2004, 04:42:56 PM
Quote from: blowndeadline on July 15, 2004, 08:16:09 AMThere is no way to automatically generate a thumb from a swf file, or at least from what I know.
You're right, the image libraries Coppermine can use (either GD or ImageMagick) don't come with flash file support, they can only work with "regular" image file types; that's why there can't be a creation of thumbnails "on the fly".

GauGau
Title: Re: How to use custom thumbnails
Post by: blowndeadline on July 15, 2004, 11:50:12 PM
Thanks GauGau, that's what I wanted to know!
Title: Re: How to use custom thumbnails
Post by: Titooy on August 07, 2004, 11:31:17 AM
I just installed a clean 1.3.1 (http://titooy.free.fr/test/) and I can't use custom thumbs. It only uses the default thumb_avi.jpg
File name: http://titooy.free.fr/test/albums/2003/joonhwan/20030718/DSCF0358.AVI
Thumb name: http://titooy.free.fr/test/albums/2003/joonhwan/20030718/thumb_DSCF0358.JPG (I tried with .jpg and .gif and it doesn't work either)

What did I do wrong?
Title: Re: How to use custom thumbnails
Post by: Casper on August 07, 2004, 12:09:50 PM
Just a shot in the dark, try changing the extenion of the JPG to lower case, jpg.
Title: Re: How to use custom thumbnails
Post by: Titooy on August 07, 2004, 12:40:41 PM
I have now
http://titooy.free.fr/test/albums/2003/joonhwan/20030718/thumb_DSCF0358.JPG
http://titooy.free.fr/test/albums/2003/joonhwan/20030718/thumb_DSCF0358.jpg
http://titooy.free.fr/test/albums/2003/joonhwan/20030718/thumb_DSCF0358.gif
http://titooy.free.fr/test/albums/2003/joonhwan/20030718/thumb_DSCF0358.png

I've re-added the vid to the gallery and it still doesn't work...
Title: Re: How to use custom thumbnails
Post by: Titooy on August 07, 2004, 02:16:46 PM
The problem is solved when I change .AVI to .avi and .JPG to .jpg

How can I make Coppermine to deal with .AVI too?

Title: Re: How to use custom thumbnails
Post by: Titooy on August 07, 2004, 03:09:13 PM
I've changed
               $thumb_extensions = Array('.gif','.png','.jpg');
into
               $thumb_extensions = Array('.gif','.png','.jpg','.GIF','.PNG','.JPG');
in order to make it accept upper-case extension for the thumbs

but I don't know php enough to modify
                $file_base_name = str_replace('.'.$mime_content['extension'],'',basename($pic_row['filename']));
in order to make it delete the upper-case extensions aswell
Title: Re: How to use custom thumbnails
Post by: loverboy on August 13, 2004, 01:59:46 AM
I have tried uploading a jpg and a wmv together.

It ends up showing the jpg in the gallery, while the wmv default thumbnail is still there.

For example, I'll ftp img001.wmv and img001.jpg to the same directory. Then i'll go to batch add files, and add both pics into the same gallery.

Still doesn't work, is there any easier way to do this?

Thanks!
Title: Two Pics When uploading 1 pic.jpg and 1 file.zip
Post by: MDxRacing on September 24, 2004, 06:04:20 PM
Like This 1.32 :)
I look at faq.html and here ,but cant find what im looking for.

If I upload a pic.jpg and a File.zip , I get two Pics 1 is the pic.jpg and the other is the same Pic as the pic.jpg But Linked to the .zip file ( I Like It That Way ).

So Is There Anyway To Hide The First pic.jpg? <------ This Is The Real Question

If I delete the .jpg then my pic of the .zip changes to a zip icon ( So I would Like To Hide First Pic.jpg)

So when you are looking Threw the different pics you only see 1 pic and if you click on it , it downloads file.zip.

Thanks
MDX
Title: Re: Two Pics When uploading 1 pic.jpg and 1 file.zip
Post by: Casper on September 24, 2004, 06:11:32 PM
Please read the thread I am attaching this to from the beginning.
Title: Re: How to use custom thumbnails
Post by: MDxRacing on September 27, 2004, 06:52:49 PM
I Must Be Doing Something Wrong.
The Only Way I Can Make My Zip File Icon The Same As Pic Is To Batch Upload All Pics In one Folder Then After It Creats The thumb_pics.jpg I Move Then To The Zip Folder.

If I Rename X.jpg to thumb_X.jpg And upload in the uploader with X.zip , I still Get Two Pics 1 is X.zip And The other is thumb_X.jpg.

And In The Upload Folder 10023 It Creats  ( normal_X.jpg )  ( thumb_thumb_X.jpg ) ( thumb_X.jpg)

What Am I Doing Wrong?

Thanks
MD
Title: Re: How to use custom thumbnails
Post by: MDxRacing on September 29, 2004, 01:15:09 AM
Is there a line of code that can be deleted so when uploading a thumb_X.jpg with X.zip It wont creat a normal_X.jpg or thumb_thumb_x.jpg ?

Or better yet

A line of code that can be deleted so you can upload X.jpg with X.zip and The normal_X.jpg would not be ceated , just the thumb_X.jpg is created only ?

If you have any ideas il test it for you

Thanks
MD
Title: Re: How to use custom thumbnails
Post by: MDxRacing on September 30, 2004, 04:26:18 AM
Ok I Figured A Way For Me And It Might Help Others
I Created A New Category Called (ALL PICTURES)And A Album Called ( Pics )
I DONOT Rename X.jpg To thumb_X.jpg
I Upload X.jpg And X.zip.
In The Second Upload Screen I Have My X.zip Icon / Pic , I Put That In The Category That I Want Others To See And Download.
In The Third Upload Screen I Have My X.jpg / Pic , I Put That In The Category Called ( ALL PICTURES >Pics ).

It Works For Me ,1 X.zip Picture That File Can Be Downloded.

Thanks
MD
Title: Re: How to use custom thumbnails
Post by: normal on April 02, 2005, 05:49:46 PM
Hi,

I belive I've correctly  followed the instructions for using a custom thumbnail.  What I end up with is the custom thumbnail PLUS the thumbnail as its very own file.  If I then try to delete the unwanted instance it also removes the custom thumbnail.

What am I doing wrong:

I FTP'd the .mov file and then a .jpg file with identical names to a folder in the albums directory and then used "batch add" to place them.

I've tried various trial and error variations on this, and I can't seem to get any result but the undesired one described above.

Thanks,
David

http://www.normal-design.com/copper-gallery
Title: Re: How to use custom thumbnails
Post by: normal on April 02, 2005, 06:19:01 PM
Hi,

I've followed the instructions correctly I think, however the result is two instances of the same file - one that is the custom thumbnail for the video file, and another that is just the thumbnail.  You can see what I'm talking about:

http://normal-design.com/copper-gallery/thumbnails.php?album=8

What went wrong?

I FTP'd a .mov and .jpg file with the same name (new-gargoyle003) and then used batch add.  I tried using the "upload file" wizard in Coppermine, but that didn't work either.

Thanks,
David

PS:  I just posted a very similar message, but it seems to have disappeared from the thread ??? so here it is again.
Title: Re: How to use custom thumbnails
Post by: Tranz on April 02, 2005, 06:30:51 PM
It seems your post is still there... right above your last one.
Title: Re: How to use custom thumbnails
Post by: lancefiasco on April 03, 2005, 06:05:34 AM
Hmm...I still show the same thumbnails. :(
Title: Re: How to use custom thumbnails
Post by: normal on April 04, 2005, 09:43:13 PM
Well, so both of my posts are here afterall.  I'm not familiar with this bulletin board's interface and so I missed the page links at the bottom of the thread.  I'd like to delete the first message, but couldn't find a delete button in the modify page . . .

Speaking of things in duplicate:  Does anyone have a suggestion on how I can get the custom thumbnail to apply ONLY to the video and not end up as two file instances in the album?

Thanks,
David

http://normal-design.com/copper-gallery/thumbnails.php?album=8

Title: Re: How to use custom thumbnails
Post by: kegobeer on April 05, 2005, 01:24:04 AM
You create a custom thumbnail and name it thumb_( your video file name ).jpg.  FTP to the directory the video is in.

Example:

I upload a video called mason.wmv
I create a thumbnail called thumb_mason.jpg
I upload the image into the same directory mason.wmv is in
Title: Re: How to use custom thumbnails
Post by: kickerman0622 on April 07, 2005, 04:49:25 AM
i need help my thumbnail for a file is called thumb_vs_kfc.jpg and the map is vs_kfc.zip it works but like i click my files thing and you see the pic of the thumbnail on one thing and the file on the other side is there no way to make the picture inside the file or something like that
Title: Re: How to use custom thumbnails
Post by: specialk on September 17, 2005, 11:40:26 AM
Hi,

I'm trying to create a custom thumbnail for an .avi file.
1) I've uploaded via FTp and and batch added my movies.
2) Then I uploaded thumb_moviename.jpg to the same directory and ensured the .avi extension was in lower case.

Still it just shows the generic .avi thumb - what have I done wrong?

See http://www.khrm.net/gallery/thumbnails.php?album=1&page=5 at the bottom.

It's a fresh install of the latest stable version of Coppemine.

Thanks very much for your help.
Title: Re: How to use custom thumbnails
Post by: Casper on September 17, 2005, 09:08:21 PM
You say the file extensions are all in lower case, but the filenames shown in the file info all show uppercase.

And if you try to open them directly in quicktime, they open when using uppercase extensions, but say file not found when using lowercase.

Title: Re: How to use custom thumbnails
Post by: specialk on September 19, 2005, 09:47:00 AM
Thanks for your quick reply. I've renamed the files using cPanels File Manager, perhaps this doesn't recognise case changes. Ill try uploading with different names.

Thanks!
Title: Re: How to use custom thumbnails
Post by: Joachim Müller on November 11, 2005, 12:29:15 AM
split unrelated reply (http://forum.coppermine-gallery.net/index.php?topic=23630.0). Don't hijack threads, especially not sticky ones.
Title: Re: How to use custom thumbnails
Post by: kelman45 on January 29, 2006, 12:44:45 AM
Thanks very much for the excellent info on this subject. Finally, I am able to use custom thumbnails. One remaining problem. If I load an audio or video file and the corresponding custom thumb, the thumbnail appears on the video/audio file. However, in every instance the .jpg I am using appears as well. I have two exact images in the gallery: one .jpg and one mp3.

If I create an album called "thumbnails_abc" and make it private I can hide the extra .jpg file. This works if I am loading into a category. I do not know how to resolve the duplicates in the User Galleries. When I move entries from the User Galleries to a Category, this workaround fails.

Any ideas on what I'm doing wrong?

Thanks.
Title: Re: How to use custom thumbnails
Post by: Joachim Müller on January 29, 2006, 11:29:35 PM
Quote from: kelman45 on January 29, 2006, 12:44:45 AMAny ideas on what I'm doing wrong?
yes: you used coppermine's upload function to upload the custom thumbnail. You mustn't. You're suppossed to FTP-upload it. Re-read the docs, and don't reply on this thread - like I said above, it's a sticky thread that isn't meant for individual support questions. Don't force us to lock down every sticky FAQ thread!
Title: Re: How to use custom thumbnails
Post by: cbonar on May 07, 2006, 03:11:46 PM
I think I have the solution to your problems : the filename of the thumbnail must include the file extension of the original video.

So for instance, all you have to do is to ftp : "toto.avi" and "thumb_toto.avi.jpg" in the same directory, and batch-add "toto.avi".

No remaining undesired photo, only the video and the thumbnail !
Title: Re: How to use custom thumbnails
Post by: Joachim Müller on May 07, 2006, 04:05:48 PM
no, that's wrong. Do exactly as I suggested. You don't batch-add the thumbnail. Read the docs