forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: christfort on May 16, 2011, 01:27:54 pm

Title: Rotating thumbs and midsized photo only
Post by: christfort on May 16, 2011, 01:27:54 pm
I find coppermine a great programme.

I presently use linpha but would like to switch to coppermine. However I have a minor problem with JPG photos that are not originally in the right orientation.

Is it possible to rotate the thumbs and mid-size photo only. I do not like to rotate my large 5M original jpg's and thereby loose quality. However it would be need being able to display all photo's in right orientation in the album.

When I use the rotate image function and choose save as thumbnail the thumb is displayed distorted and the mid-size photo is left unrotated.
Title: Re: Rotating thumbs and midsized photo only
Post by: Αndré on May 16, 2011, 04:16:26 pm
Open pic_editor.php, find
Code: [Select]
copy($img_dir.$newimage,$CONFIG['fullpath'].$CURRENT_PIC['filepath'].$CURRENT_PIC['filename'])   ;and delete it/comment it out.
Title: Re: Rotating thumbs and midsized photo only
Post by: christfort on May 17, 2011, 09:38:42 am
Thanks for an excellent solution to my problem.  :)

As I use coppermine as a storage for my original photos on the Intranet, I don't really have server restrictions, but would like to be absolutely sure that the originals are not modified in any way. Which lines should also be commented out to ensure that coppermine does not resize during upload etc.
Title: Re: Rotating thumbs and midsized photo only
Post by: Αndré on May 17, 2011, 10:00:07 am
You have to disable the watermarking feature, set 'Max width or height for uploaded pictures (pixels)' for to a very high value and to be absolutely sure, set 'Auto resize images that are larger than max width or height' to 'No'.
Title: Re: Rotating thumbs and midsized photo only
Post by: christfort on May 17, 2011, 10:16:29 am
Thanks again for your great help ;D
Title: Re: Rotating thumbs and midsized photo only
Post by: Αndré on May 17, 2011, 10:19:42 am
Resolve your threads
you can tag your answer as "solved" by clicking on the little image in your initial posting on your thread.