This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
image resizing
Started 15 years ago by M202A1 | 5 posts |
-
Can i intergrate an image resize code within your code?
Posted 15 years ago # -
I don't have the complete code for the image resizing, but this is possible indeed.
You can do so by modifying "includes/post-functions.php" file, inside the file you'll find "process_form()" function.You can add your custom image resizing code below the file upload processing code.
This way when your user upload an image, it will be resized as you need it.The file upload processing code is located around line 1035 and line 1044.
You should see a code like this one:if (move_uploaded_file($_FILES[$element_name]['tmp_name'], $destination_file)) {
simply put your code below that line.
MachForm Founder
Posted 15 years ago # -
What code can you put in there to do this function? I would love a function like this to work. I could totally drop editing on the machine if it did it on the server.
Any scripts or codes I can use to do this would be a super awesome outcome!!!
Jeremy
Posted 15 years ago # -
Try this one:
http://www.white-hat-web-design.co.uk/articles/php-image-resizing.phpIt seems pretty simple to resize images using that script.
MachForm Founder
Posted 15 years ago # -
I will need help to include that code cos it is not straight forward. Can you help?
Posted 15 years ago #
Reply
You must log in to post.