Jump to content

Recommended Posts

I'm new to GD and ive been playing around to get a feel,
Its not as easy as i may have thought.

I have managed to shrink pictures, (Thumbnails), and add a water mark.
But only 1 image per php page.

I have had some problems getting my head around
displaying any GD images with HTLM code, but im making small advances.

Anyways after reading up about GD and getimagesize i came across
this piece of code.

Original [u]http://uk.php.net/manual/en/function.getimagesize.php#36452[/u] Author janoma_cl
his comments are included.

[code]Please use the link above?
As i'm unable to include the code in this post.
Error The resource cannot be displayed 406[/code]

Ive been trying almost all day trying to make it work?
Or make it useable.

I would like to get it working so i can understand whats happeing,
and learn more.

I believe the code above to be working but its me that's making the mistakes?
I have become confused, and lost.

I have copied and pasted the code into a php file.
ive also included before the thumbnail function
$file = '/temp/car.jpg';

I have tried many diffrent variations, but i cant get the above to work.
If some one could help it would be most appreciated.

Do i have to have 2 files?
one for the html and one for the function??

Thanks in advance for any help.

Mark.
Link to comment
https://forums.phpfreaks.com/topic/12303-help-please/
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.