Jump to content

HOW DO I: image submit at fixed size(88x31)


eyeh8f8

Recommended Posts

First off i am new to php so this may be simple to some but not me.

 

What i want to do is have it so when an image is submitted to my site it is at a fixed 88 by 31. Is there something i do with the sql or php or both.

 

also I am trying to learn as much from this experience(making the script.) so could you give me just what i need to create that part of the script and no more. if i have anymore questions on this script, i will ask in this thread(of course there are other parts to the script)

 

also if that seems rude or anything, sorry, i just want to say that i did some of the work on my own, and without asking a hundred billion questions.

Link to comment
Share on other sites

Take a look at the image functions in php, particullary:

 

http://www.php.net/manual/en/function.imagecopyresampled.php

 

and the related ones needed (imagejpg(), imagecreatetruecolor(), etc)

 

There's a couple of examples that can help you work your way up from them. Alternatively, you can just use CSS to force the submited images to 81x33, although they will look ugly sometimes and will not save you server space.

 

Hope that helps, Cheers.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.