Fixed thumbails Fixed thumbails
 

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

Fixed thumbails

Started by macsimoin, May 27, 2006, 05:30:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

macsimoin

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!


Nibbler

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.

Nibbler


Stramm

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

macsimoin

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?

Stramm

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