MikoMak Posted June 1, 2006 Share Posted June 1, 2006 Hi all,I must be losing it cause I can't seem to get the hang of using gd - having spent 2 days reading the manual and various articles/posts/tutorials I'm just a tad confused about the functions I need to use.What I'd like is a simple roadmap to follow (not code) so I can sort it out myself, so if someone could point me in the right direction it'd be great.Here's what I'm doing (nothing complex) -I'm uploading a jpeg using a form - I'm saving it to a dir as well as writing a url to db so I can display it - this works just fine, no trouble there.What I'd like to plugin is a way to resize (and compress) to 2 different sizes. So now I'll save 2 images and 2 urls.What would be the process I need to follow i.e. the flow of functions?Thanx in advance. Link to comment https://forums.phpfreaks.com/topic/10954-using-gd-lib-to-resizesave-an-uploaded-image/ Share on other sites More sharing options...
AndyB Posted June 1, 2006 Share Posted June 1, 2006 I can't give you a roadmap, but I can give you guaranteed working code as created by lixlpixel. It works "straight out of the box" - [a href=\"http://fundisom.com/phparadise/php/image_handling/image_upload_and_resize\" target=\"_blank\"]http://fundisom.com/phparadise/php/image_h...load_and_resize[/a] Link to comment https://forums.phpfreaks.com/topic/10954-using-gd-lib-to-resizesave-an-uploaded-image/#findComment-40922 Share on other sites More sharing options...
MikoMak Posted June 2, 2006 Author Share Posted June 2, 2006 Thanx for that Andy - with a bit of tweaking it'll do just what I need. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Link to comment https://forums.phpfreaks.com/topic/10954-using-gd-lib-to-resizesave-an-uploaded-image/#findComment-41124 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.