Jump to content

[SOLVED] Resize an image in a folder


Lyleyboy

Recommended Posts

Hi all,

 

I have had a search but not found anything of too much help.

 

What I need is a script to take an existing image file resize it to 600 wide then save it back to the same folder/filename.

 

I am a total newbie so please don't get too techie with me.

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/166492-solved-resize-an-image-in-a-folder/
Share on other sites

Hi the best thing I can tell you if you want to resize a picture and you don't have photo shop is too use paint. It is for free. It normally is on pc's I don't know about mac. go to All Programs underneath your start button>Click the Assessory folder> you should now see paint. Click on it>File Open>Find your folder where you have your pictures. Do one picture first>Click on Image>Resize and then the dimension that you want 600 by ?. Once you have what you want press OK then image Save As> give it a different name for example if your image name is city call it city600hx400w this way you will always know the height and width of that picture and that it is not the orignals. Because with pictures it is easy to make it small and look good, but the picture big again is hell, because it will be fuzzy and then it is now pixelated.

 

Now if you are writing a website code all you have to do is put this in your image code for the height and width dimension, it will resize the picture for you

<img src="file:///C|/wamp/www/Hair_Business_Website/FusionBonds/keratinnailchips100x100.jpg" width="600" height="400" alt="Alaska" />

I hope I have helped

Hi Thanks for the advice.

I may have misled you.

 

I'm looking for users to be able to upload a photo (which I have working) but for the sake of speed and usablility of the site I want the image to be automatically (as you can't reply on a user to do this) resized to say 600 px wide.

 

I hope this clarifies my request.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.