Need help with image Resizing
Moderator: General Moderators
Need help with image Resizing
Hello,
I have installed the GD library on my apache webserver but need some help with resizing images that will be showed on the main page of my website.
Well if images will be like 640x480 i wan to resize them like this 150x200 so i set always the height of the image on 200 but i want if the image is largen then 150 pixels to cut out till the image is 150x200. So first i will set the height to 200.
Can someone helps me or knows a good tutorial about this?
I have installed the GD library on my apache webserver but need some help with resizing images that will be showed on the main page of my website.
Well if images will be like 640x480 i wan to resize them like this 150x200 so i set always the height of the image on 200 but i want if the image is largen then 150 pixels to cut out till the image is 150x200. So first i will set the height to 200.
Can someone helps me or knows a good tutorial about this?
Similar code here :
viewtopic.php?t=25346
viewtopic.php?t=25346
I still have a little question of you set the height on 200 doesn't the functions sets automatic the width. Like if you set the height of an image of 640x480 to 200 then the width should be 267px.
Because after this i can crop the 67pix out of it. Is something maybe possible? The best thing would be for me if have an image that i can get the height on 200 width on 200pix in a variable so that the real image not will be changed but it's only necessary to show the latest images in a gallery and on the main of my site.
Because after this i can crop the 67pix out of it. Is something maybe possible? The best thing would be for me if have an image that i can get the height on 200 width on 200pix in a variable so that the real image not will be changed but it's only necessary to show the latest images in a gallery and on the main of my site.