Jump to content

Recommended Posts

I am pretty new to PHP, so i don't really know how to do anything beyond the basics and am mostly using code examples to learn my way. However, i haven't been been able to find any examples for what i'm looking to do. I want to take an image (jpg or gif) and scale it so it fits into a pre-sized box. I know there are lots of scripts out there that do this with a file and output to a file.. but i'm looking for something that that takes a web image (http link) and then outputs directly to the browser or returns some sort of image that i can display with <img> tags (i don't know if thats even possible, but would be my first choice). If anyone knows of a script already made to do this or maybe there is a method already in php for this sort of thing that would be great. Thank you for your help.

-- Brady
Link to comment
https://forums.phpfreaks.com/topic/12906-simple-image-scaling/
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.