Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Thumbnails > The Cropping option (?)  (Read 6375 times)

0 Members and 1 Guest are viewing this topic.

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Thumbnails > The Cropping option (?)
« on: October 15, 2003, 04:12:34 pm »

Look at
http://www.fantasya.net

It's my site about fantasy ( /!\ WARNING POPUP ADULT CONTENT AT THE BEGINNING > to pay bandwidth, sorry :( /!\)

I find (it's not the taste of all ... but ...) that CROPPED thumbnails are more esthetic : is it possible to have the option ?

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Thumbnails > The Cropping option (?)
« Reply #1 on: October 15, 2003, 04:47:14 pm »

Hey - I had not looked at Fantasya lately BUT seeing it I recalled that it was my one time favourite. Great work

As for the cropped thumbnail - I have made a provision that some future coder can put in a mod for replacing thumbnail...

Anyone willing to take up this one?

I also have somewhere a combination of PHP + JS which allows one to crop pictures right in browsers - this I promise to dig out if someone is willing to code this...
Logged
SANIsoft PHP applications for E Biz

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Thumbnails > The Cropping option (?)
« Reply #2 on: October 15, 2003, 04:57:42 pm »

Quote from: "Tarique"

I also have somewhere a combination of PHP + JS which allows one to crop pictures right in browsers - this I promise to dig out if someone is willing to code this...


Put it up on the dev branch, or PM me.  I'll take a look at it.

-Hyperion
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Thumbnails > The Cropping option (?)
« Reply #3 on: October 15, 2003, 05:01:07 pm »

I have this on the Fantasya.Net's code

Code: [Select]

# Upload de la vignette

if ($pics!="none") {

#   copy($pics,);

   

         $size=getimagesize($pics);

                 

         $ratio1=$size[0]/75.0;

         $ratio2=$size[1]/75.0;

                 $ratio=min($ratio1,$ratio2);

   

         $width=ceil($size[0]/$ratio);

         $height=ceil($size[1]/$ratio);

         $x=floor(($width-75)/2);

         $y=floor(($height-75)/2);

             

         $commande='/usr/bin/X11/convert -geometry '.$width.'x'.$height.' -crop 75x75+'.$x.'+'.$y.' '.$pics.' ../images/pics/gal_'.$gae_ref.'.jpg';

         exec($commande);

   

}


I use as you can see ImageMagick
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.