coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: macsimoin on May 27, 2006, 05:30:51 PM

Title: Fixed thumbails
Post by: macsimoin on May 27, 2006, 05:30:51 PM
After a couple of years away from CPG, I've re-installed the latest version and find that it is greatly improved. This is still the most user-friendly gallery out there, but...I really need to set my thumbnails to a fixed height and width. This is the last 'serious' coding issue I have, but I need to fix this before I allow new users to register...when that happens, I'm going to have a lot of new users and I want the site to look good (or, better than it does). I know I'm not up to par on my coding skills, but I could really use some help with this. So, is there a way to set both height and width for thumbnails in CPG (v1.4.2)?

I've searched through these forums for a solution to my problem buy have yet to find an answer: I thought I found some good links to other threads in the forums (with answers to this problem) but these posts are either 'off-limits' or they've been removed.

FYI, my site uses ImageMagick but I don't know what I need to edit in picmgmt.inc.php to fix this. I'm also using the Kubrick theme, if that helps. Thanks!

Title: Re: Fixed thumbails
Post by: Nibbler on May 27, 2006, 05:38:35 PM
You should be able to make a minor code mod to include/picmgmt.inc.php, eg.


-geometry {$destWidth}x{$destHeight}


to


-geometry 123x456!


To make all thumbs 123x456. There are 2 places the code exists, change whichever applies or both if you can't read the code.
Title: Re: Fixed thumbails
Post by: Nibbler on May 27, 2006, 05:44:05 PM
Also, update !
Title: Re: Fixed thumbails
Post by: Stramm on May 27, 2006, 08:20:55 PM
just with -geometry {$destWidth}x{$destHeight} the thumbs would look distorted. You'll need to crop and resize them to get decent results.

My 'better thumbs' mod will do exactly this. It's for CPG 1.3x. If you need it for 1.4 you'll have to port it or use the 'modpack'

better thumbs for 1.3: http://forum.coppermine-gallery.net/index.php?topic=20374.0
modpack for 1.4: http://forum.coppermine-gallery.net/index.php?topic=28367.0
Title: Re: Fixed thumbails
Post by: macsimoin on May 29, 2006, 02:51:07 AM
Thanks, guys...Apparently my re-installation through CPanel installed v1.4.2, so I manually upgraded to v1.4.6, uploaded Stramm's Modpack and ran the update.php. Everything seemed to go smoothly and versioncheck.php shows all the updated files in place.

However, I think I might be a bit confused on getting these thumbnails set properly: In Config, under "Files and thumbnails settings" I've set the thumbnail height and width to 120x120 but it isn't working. The "Mini Thumb Width" and "Mini Thumb Height" are set to the same dimensions...is this the problem or am I missing something else? Did I skip a step somewhere?
Title: Re: Fixed thumbails
Post by: Stramm on May 29, 2006, 07:39:01 AM
For mod support you should ask in the mod thread. And please read the modpack docs
QuoteTo crop your thumbnails you'll have to set 'Files and thumbnails settings '-> Use dimension ( width or height or Max aspect for thumbnail ) to 'exact'. Below enter your desired thumb width/ height. Now all thumbnails have the exact same size.

If you have existing pics in your gallery you'll have to run the admin tools and recreate the thumbs