coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Bidybag on August 19, 2004, 03:19:07 AM

Title: Picture losing quality - only good when you open javascript link
Post by: Bidybag on August 19, 2004, 03:19:07 AM
I have put a few pictures on my website. Lets take this 1 as an example: http://www.bidybag.com/graphics/displayimage.php?album=random&cat=0&pos=-6

If you go there and look at the picture you will see that it is not very good. Click on the picture again and you will see how much better it looks even tho they are both the same size. I want the picture to look the same as the picture on the javascript window. I have set to jpeg quality to 100.

What else can i do?
Title: Re: Picture losing quality - only good when you open javascript link
Post by: Joachim Müller on August 19, 2004, 08:24:11 AM
jpeg is not a losless format: and resizing isn't losless either. Setting pic quality to 100% is just a waste of resources. Instead, set the dimensions for intermediates higher. If the max size for intermediates to a higher value than your original is, then it won't be resized at all.

GauGau
Title: Re: Picture losing quality - only good when you open javascript link
Post by: Bidybag on August 19, 2004, 01:48:02 PM
why is it good when i open javascript link and not good on the website when there the same size?
Title: Re: Picture losing quality - only good when you open javascript link
Post by: Joachim Müller on August 20, 2004, 09:11:10 AM
Those are different files: http://www.bidybag.com/graphics/albums/userpics/10001/normal_multi.jpg and http://www.bidybag.com/graphics/albums/userpics/10001/multi.jpg
The one with the "normal_" prefix is the resized one. Do as I suggested and edit the intermediate size in coppermine config, then use admin tools to re-build your intermediate file.

GauGau
Title: Re: Picture losing quality - only good when you open javascript link
Post by: Bidybag on August 20, 2004, 06:58:20 PM
i dont even understand what you mean by that
Title: Re: Picture losing quality - only good when you open javascript link
Post by: Joachim Müller on August 21, 2004, 03:36:21 AM
those two pics (the one on embedded on the page and the one in the pop-up) are NOT identical - they differ. They differ, because you instructed Coppermine to create a version with reduced size and quality by setting stuff in coppermine config. To find out more, read the documentation that comes with coppermine.

GauGau
Title: Re: Picture losing quality - only good when you open javascript link
Post by: Bidybag on August 31, 2004, 04:03:10 AM
plz tell me what i could change in config to make better
Title: Re: Picture losing quality - only good when you open javascript link
Post by: Joachim Müller on August 31, 2004, 07:23:49 AM
in coppermine config, set "Max width or height of an intermediate picture/video" from "400" to "600" and save those settings. Changing this settings won't change the pics that already exist in your database, it will only apply for pics that are being added from this point on. To improve the quality of the pics that already exist in your database, go to "admins tools" from your admin menu, choose "Update thumbs and/or resized photos (1)", option "Only resized pictures", choose the album at the bottom of the screen (for your above example you posted, choose "Sqaure Size Graphics") and hit "submit".
Please refer to the documentation for details, it's all in there.
It's also recommended that you set " Quality for JPEG files" to something less than "100" in coppermine config (usually, the default value "80" is OK.

Joachim