I want the original file to be the thumbnail I want the original file to be the thumbnail
 

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

I want the original file to be the thumbnail

Started by crow5716, May 29, 2009, 11:17:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crow5716

So I searched and found a few things kind of what I was looking for but didn't help too much. I am new to coppermine and am trying to use it on my website. The way I was doing galleries on my webpage was all html and I wanted something easier to change and work with. When I upload files coppermine makes a thumbnail file. I don't want any thumbnail generated. I just want the original file to be the thumbnail. Any file I upload to the gallery is going to be around 100x100 so there is no need for thumbnails. Plus they are all animated Gif files and when the thumbnail is created it loses it's animation. I have a link to my coppermine example now. I manually went in and re-ftp uploaded the top 5 thumbnails into the folder. but the  bottom 2 are how the thumbnails look when uploading them through coppermine.

http://www.bouncingtrucks.com/gallery/thumbnails.php?album=2

-Crow
BouncingTrucks.com

Joachim Müller

Then set the dimension for thumbs to a high value, e.g. 400

crow5716

i did that but when i upload it coppermine is still recreating it's own gif thumbnail. It stays the original dimension in size but when coppermine makes a thumnail version of it. The Gif loses it's animations and just becomes a static image.

-crow

Joachim Müller

Can you post a link to your gallery please?

crow5716

http://www.bouncingtrucks.com/gallery/thumbnails.php?album=2

if you look at the entire top row, i want it to look like this when i upload them. i had to manually go in with my ftp program and upload the orginial files for each and rename them with the "thumb_" prefix. if you look at the 2 files in the bottom row this is how they look when i upload them through coppermine. they loose some quality and all of their animation. i just want the original file ot be the thumbnail without going through something where they make a new file for the thumbnail.

-crow

Joe Carver

[off category topic]
You can easily find many automated programs to rename large amounts of files. What could be faster than FTP for uploads?
[/off category topic]

crow5716

i don't want to have to upload the new thumbnail into a gallery each time there is an upload. there are going to be two people uploading these little animated trucks into the gallery. and i don't want to have to go in and save the original file and re-upload it through ftp as the thumbnail for it anytime myself or friend upload into a gallery. there has to be a way to use original file as thumbnail and not re-create a new file for thumbnail.

-crow

Joachim Müller

I suggest adding a crude hack that duplicates the file on upload or alternatively going through coppermine's code and removing all instances of the thumb prefix.

crow5716

so i've been looking through code for the past few hours. i'm looking for where is creates the resized copy with the thumb prefix. can anyone point me to where this happens and what i can do for it to just make a original copy of the file with the thumb prefix so the rest of the coppermine code will find the thumb_file. so basically where does it make the thumbnail file and how do i make it just make a copy with the thumb_ name?

-crow

Nibbler

Setting the thumb prefix to blank in config should have the desired effect.

crow5716

Quote from: Nibbler on May 30, 2009, 07:36:36 PM
Setting the thumb prefix to blank in config should have the desired effect.

thank you so much. i think that did it. and it was a super easy fix

-crow