News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Images and php

Started by neXus, September 14, 2006, 16:22:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neXus

Anyone know if its possible not to just create a thumbnail which I know how to do but only capture part of an image

So say you have a 500 by 500 image and you create a thumbnail but have only a 50 by 50 top right cut of that image to create a sqaure thumbnail which does not show the whole image and is a bit abstract as a result.

Lots of galleries around have it but must be by hand unless there is a server side way to do it.. any ideas?

M3ta7h3ad

There must be mate. Surely imagemagik or GD can do it. but unfortunately Ive no idea.

TRB

Yes, use ImageMagick to crop and resize the original.

neXus

Quote from: TRBYes, use ImageMagick to crop and resize the original.

cheers, this installed can handle it and then allow php code use on a server but I cant install this on servers really.

Got to mega read up on image manipluation in php I think. Simple cropping will do i think

M3ta7h3ad

most servers will actually have it installed anyway as its way bloody better than GD. Check PHPinfo for installed modules! :)

neXus

http://5thdigital.com/phpinfo.php


I think I may have just figured out a way actually that would be simple browser compatable and not involve php, will give it a go later.

Im thinking using my current gallery thing I am buidling, create the thumbnials and images and place in the gallery windows as normal, they all witht he right hieght but different widths of course, But If I tell the containing Div to only be a fixed certain size for the top corner of the image It should show a croped partial image

M3ta7h3ad

Quote from: neXushttp://5thdigital.com/phpinfo.php


I think I may have just figured out a way actually that would be simple browser compatable and not involve php, will give it a go later.

Im thinking using my current gallery thing I am buidling, create the thumbnials and images and place in the gallery windows as normal, they all witht he right hieght but different widths of course, But If I tell the containing Div to only be a fixed certain size for the top corner of the image It should show a croped partial image

Appears you have GD installed but no imagemagick. :(

Probably possible using GD. Im amazed you dont even have EXIF support enabled. Hmmmm thats poor.