[Solved] Thumbnails created small size but huge file [Solved] Thumbnails created small size but huge file
 

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

[Solved] Thumbnails created small size but huge file

Started by dfe, April 12, 2004, 08:30:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dfe

Hi

I am running the the latest version (as of today), on Win2K with ImageMagick.

Everything is running 100%, but I have now noticed that if I add bulk files via FTP the thumbnail creation process somewhat fails.

It takes a large file and creates a thumbnail from it, the thumbnail's pixel is correct, but the physical file size is still over 100k, so ending with albums full of 140k thumbnail images.

How can I fix this?

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

dfe

No they are all JPG images from digicams. Here's is the link to the gallery still experimental.
http://www.crosstrax.co.za/tripgallery/

dfe

Look at
http://www.crosstrax.co.za/tripgallery/thumbnails.php?album=8

Most thumbs are huge,

Then if you look at
http://www.crosstrax.co.za/tripgallery/thumbnails.php?album=4
They are small like they should be.

Can it be that I interrupted the thumbnail creation process and press insert to quickly?

Joachim Müller

I get
QuoteDirectory Listing Denied
This Virtual Directory does not allow contents to be listed.
when trying to access the link you posted.
Make sure you haven't set quality settings to 100% in coppermine config - the thumbs can easily get bigger than the originals if you switch jpeg compression off.

GauGau

dfe

I have deleted the thumbs now and ran the admin util, it is taking a 800k file and creating a 140k thumbnail from it, so I guess I have to play with the settings.

I have now tried it with quality set right down to 50, and the thumbnail and normal image is almost of the size physical file size.

The link above should work fine.

Joachim Müller

I don't get the point - taking http://www.crosstrax.co.za/tripgallery/displayimage.php?pos=-125 as an example, the original pic has 640 x 480 with 63 kB, the intermediate has 533 x 400 with 53 kB, the thumb has 133 x 100 with 9.3 kB. This is perfectly OK imo.

GauGau

P.S. the "link to ecard" in coppermine config should be http://www.crosstrax.co.za/tripgallery (without trailing slash), nothttp://www.crosstrax.co.za/tripgallery/index.php

Casper

Your link above, http://www.crosstrax.co.za/tripgallery/thumbnails.php?album=8, works ok for me, and the thumbs are very big, 140k as you said.

Did you use the re-size utility to re-make the thumbs after changing your compression settings back down.  The thumbs won't be changed until you do that.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

dfe

Yes I changed the res down, ran the admin tool to resize the thumbs, when that did'nt make a difference I deleted the thumbs and the normal images and re-ran the admin tool.

The only difference in creating the albums is that when I created the one called Vleesbaai I did not wait for the preview thumbs but hit insert immediately, and when I created the Maitland Mines one I waited for the preview ones first.

I will delete the pics now and re-insert using the bulk add tool, but will wait for the previews to load to see if that makes a difference.

Dirk

Joachim Müller

deleting the thumbs shouldn't be necessary, just use the resize tool as casper suggested. Make sure you have selected the correct album for the resize tool to run through.

GauGau

dfe

Busy doing it now, created a new album and copied the pics back in, thumbs are still 140k odd, so the normal and the thumb image is virtually the same size. Original image about 800k, not sure why it is working on some and not other albums though.

http://www.crosstrax.co.za/tripgallery/thumbnails.php?album=9

Joachim Müller

Please post a screenshot of your coppermine config (the relevant part being "Pictures and thumbnails settings").

GauGau

dfe

Here is a capture.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.crosstrax.co.za%2Ftmp%2Fscreen1.jpg&hash=e74b4f441dc7763b4cef9453dcdafce21424e892)

It still puzzles me why some galleries resized fine and others not. I am also having a problem with the upload feature but will tackle that later.

Dirk[/img]

Casper

I think this is somehow caused by the camera.  I have looked around your site, and all the large thumbs are ones taken with the Hewlett Packard camera, with filenames starting 'HPIM'.  The thumbs taken with your Sony camera are fine.  
So I think it has to do with the jpeg system used by HP.  Try batch converting them and saving them with an image software, and see what happens then.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

dfe

Okay I will batch convert them with ACDC and create a new test gallery. The camera is a HP Photosmart 850, but I have a personal gallery with Fotki and there it works fine.

Maybe I must also try and manually create thumbnails using ImageMagick from the command line.

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

dfe

It seems that you have a point, I have converted a couple of images using AcDC, same result though in huge thumbnails.

Also uploaded 2 pics taken with my Panasonic LC-33, for these 2 the thumbnails are about 11k each so is acceptable.

I will have to play around a bit more with the converting of HPIM images will post here if I find out anything else.

Thanks for you help!
Dirk

dfe

Sorry the previous 2 posts overlapped, created another test gallery and converted some images wham bam all sorted.

Cheers and thnks!

Casper

Glad it's sorted.  Sometimes IM has problems with some jpeg formats.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

I thought I'd check this out, so I used google to search for images with the name HPIM, and guess what.  
The same thing was happening to googles thumbs for many of the images with this file name.  So I guess it is to do with HP's file saving setup.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here