Jump to content

Recommended Posts

As a real estate web admin, I get dozens of photos every day.

Since our site uses them in different ways, I need to resize each one in photoshop to at least 3 different sizes, and upload them into three different folders. I do it this way because some ways they are used cannot handle the full sized photo simply "virtually" resized (the file size is still the same and uses the same bandwidth as the original photo even though it displays smaller).

What I would like to do is be able to dynamically resize, rename and save the original to the various folders ... and have three completely new originals with their respective actual file sizes.

I tried playing around with some code, and can get it to resize, rename and store, but they all still retain the original file size from the server.
Any ideas?

Thanks,
Dave
Link to comment
https://forums.phpfreaks.com/topic/9555-resize-rename-and-save-photo-as-new/
Share on other sites

html has something really sweet for that called img :)

if u put in this:

<img src="upload8647987448.jpg" name="size1" width="32" height="32">
<img src="upload8647987448.jpg" name="size2" width="64" height="64">
<img src="upload8647987448.jpg" name="size3" width="128" height="128">

then when you right click on this photo and click save target as... the picture will be 32,32 or 64,64 or 128,128 i do not recommend to enlarge a photo from it original size through <img> how would you feel if they stretched you? (blurred?) ofcourse the smaller a large photo is resized the better it will look :)
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.