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: Square thumbnails - desperately need help  (Read 3698 times)

0 Members and 1 Guest are viewing this topic.

eliorusso

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Square thumbnails - desperately need help
« on: August 11, 2004, 06:13:27 am »

I have looked everywhere in this forum and the only hint I could find about making square thumbnails is to look at the include/picmgmt.inc.php file.
I have been playing around with the code for a week but I could not manage to do it.
Is this something fairly easy to do? If so, could anyone help?

Thank you all.
Logged

shaddy

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 23
Re: Square thumbnails - desperately need help
« Reply #1 on: August 11, 2004, 07:23:06 am »

Might be in Image_Processor.php, but I'm just a newbie.  But the reason for my reply is to ask why you'd want them square?  You piqued my curiosity.  If you have a rectangular pic, the only ways to create a square thumb is to crop the orig, crop the thumb, or distort the thumb.  To distort seems like it would be easy, just by harcoding in instead of max's and min's and dividing, but that would look silly.   Cropping sounds harder, but why would you want to?

Sorry for being nosey.  Just curious.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Square thumbnails - desperately need help
« Reply #2 on: August 11, 2004, 10:43:22 am »

shaddy is right - automatic cropping often leads to results that are not satisfiying, that's why you're recommended to use coppermine's piceditor that let's you crop regular images and thumbnails.

GauGau

P.S. In the future, please post support requests on the support board that corresponds to the coppermine version you use. Make sure to post in the most appropriate sub-board.
Logged

eliorusso

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Square thumbnails - desperately need help
« Reply #3 on: August 12, 2004, 08:56:26 am »

Sorry for posting in the wrong board, will be more careful in the future.
The reason I need square thumbnails is purely esthetic.  When you have a series of thumbnails with portrait and landscape orientation all together it just does not look good.  I also woud not care too much about the cropping, as a matter of fact it could actually result in some pretty interesting images.
GauGau, is there an easy way fordoing this?
Thanks again
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Square thumbnails - desperately need help
« Reply #4 on: August 12, 2004, 09:25:08 am »

I think someone has posted a mod for an older version of coppermine that can do this. Please search the board (as it was written for an older version, you will probably have to modify the mod to make it work with recent versions of the script) - I don't remember the thread by heart.

GauGau

P.S. Please post what version of coppermine you're currently using, so I can move this thread to the proper board
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Square thumbnails - desperately need help
« Reply #5 on: August 12, 2004, 10:17:41 am »

This was discussed on these 2 threads;

http://forum.coppermine-gallery.net/index.php?topic=2531.0

http://forum.coppermine-gallery.net/index.php?topic=8236.msg5315#msg5315

The discussion was based on RBL's adaption of coppermine at http://lomoblog.com/

Unfortunately, the method he used was never fully posted.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

eliorusso

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Square thumbnails - desperately need help
« Reply #6 on: August 12, 2004, 06:27:07 pm »

GauGau, I am running version 1.3.1.
Casper, thenks for the links, the second one has some useful information on what to look for in the code.  I will go and try changing some code around. The Lomoblog site is really well made, one of the best looking Coppermine sites I have seen, and it definitely proves my point that in some cases square thumbnails look nicer.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.