Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th January 2010, 21:37
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default GD portrait / landscape square thubmnails

I'm trying to move (copy) a resize image (on a square fixed width/height image. (the resizing is done by PHP and GD)

This so all created thumbnails have the same size regarding if it's made from a landscape or portrait image. I do not want to crop the image!

The resized images are height 200 pixels or 200 pixels wide.
The square fixed image is 400 by 400 pixels.

Anyone here who might have a PHP code example how to do this?
I've used google, but till now I did not find anything usable.

Please note that I'm not after the resizing part.. All I need is the "move/copy" on the square part.
Reply With Quote
Sponsored Links
  #2  
Old 18th January 2010, 22:51
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
 
Default

Nevermind..

I found this great image processing solution.
Reply With Quote
The Following 2 Users Say Thank You to edge For This Useful Post:
Ben (19th January 2010), falko (19th January 2010)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.