Square thumbnails - desperately need help Square thumbnails - desperately need help
 

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

Square thumbnails - desperately need help

Started by eliorusso, August 11, 2004, 06:13:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eliorusso

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.

shaddy

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.


Joachim Müller

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.

eliorusso

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

Joachim Müller

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

Casper

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.
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

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.