Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Fixed thumbails  (Read 3392 times)

0 Members and 1 Guest are viewing this topic.

macsimoin

  • Guest
Fixed thumbails
« 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!

« Last Edit: May 29, 2006, 07:50:05 am by GauGau »
Logged

Nibbler

  • Guest
Re: Fixed thumbails
« Reply #1 on: May 27, 2006, 05:38:35 pm »

You should be able to make a minor code mod to include/picmgmt.inc.php, eg.

Code: [Select]
-geometry {$destWidth}x{$destHeight}

to

Code: [Select]
-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.
Logged

Nibbler

  • Guest
Re: Fixed thumbails
« Reply #2 on: May 27, 2006, 05:44:05 pm »

Also, update !
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Fixed thumbails
« Reply #3 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

macsimoin

  • Guest
Re: Fixed thumbails
« Reply #4 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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Fixed thumbails
« Reply #5 on: May 29, 2006, 07:39:01 am »

For mod support you should ask in the mod thread. And please read the modpack docs
Quote
To 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
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.