[Solved]: normal pics only created when original is bigger!! [Solved]: normal pics only created when original is bigger!!
 

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]: normal pics only created when original is bigger!!

Started by astrostar59, February 21, 2008, 02:21:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

astrostar59

I have a weird thing happening. If I upload a pic less than my 300px limit, it loads to the server as the original name.
If it is bigger than 300px before upload, coppermine downsizes the original ok, but calls this downsized one
normal_!! What gives. I can't use the gallery if it doesn't create the downsized pic the same name as the other
smaller one, or my pics will be all over the place. I have the config set to create intermediate pics.

I thought cpm created a normal (copy) file everytime?? regardless of downsize or not.

I tried GD 1x and 2x but the same happens. My service provider is on php 5+
Everthing else wrks ok, thumbnails, gallery views ect.

Please help me!!

Nibbler

That's expected. It would be a waste of disk space to do otherwise.

astrostar59

Yes , it saves space, but cpm is not using the downsized pics in the gallery. If I look at the database entries
in the picture table, it is using the same (big) image. The normal_ pic is the downsized one but it is not using it??

Stramm

A database entry normal_picture.jpg is redundant. If creating intermediate images is enabled and the orig image > than your config setting setting for normal images, then a normal image exists. Same for thumbs. That's why you only will find the filename of the fullsized in the db and not normal and thumb.
And this doesn't say anything about coppermine using the normal images or not.

astrostar59

Thanks for the reply. Is there a way then, that I can get CP to make a copy (normal_) image for all uploaded, regardless of size. I wanted
to use CP in my website but if the naming convention differs depending on size of image then I can't get it to link.

astrostar59

I hav found that you can get admin tools utility in CP to delete the full sized images. This renames the Normal_ downsized pic and deletes the original bigger pic. This then results in what I want. Is there a way to set CP to do this automatically?


Joachim Müller

That's nonsense. If you want to accomplish this, just set the max. allowed resolution to the same value as the size for intermediates, then set creation of intermediates to "no" and finally enable "Auto resize images that are larger than max width or height" for everyone. This will give you the expected result.

astrostar59

Hey, thanks dude I missed the lower setting - max size for downloadable pics. It works a treat now!!