Jump to content

Rotate Images In PHP


Miker1012

Recommended Posts

Yes, you can rotate images using the GD library: imagerotate()

 

Not entirely sure what you mean by 'displaying as a php file'. Do you mean that you want the file to be a .php file? If which case, yes thats fine. Thats how dynamic images work - you set a content type header to let the browser know what the file is. The example on the above page will show you what i mean.

Link to comment
Share on other sites

Does imagerotate() switch images?

 

What does the manual says the function does?  GingerRobot provide you the link to the manual.

 

Also, I meant that I have seen other php pages that doesn't let you view the source and appears as an image.

 

'php pages' do not exist. php generates html code that is sent to your browser and displayed there.

 

Are you actually looking for something to change images rather than something to rotate the same image.

 

The better you explain your needs, the better the responses are likely to be.

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.