Image Resizing
Posted: Sun Sep 18, 2005 3:36 am
I have this client that has a directory containing around 1300 images that contains actual and detail pictures of his items. For example i have this NX-VA1-N1 as the actual and NX-VA1-N1-DE as the detail image but also contains some files that has no details at all. And i want to automate their resizing in three categories and be placed in three different subfolders under Images Folder.
Example:
Directory Name: Images
Note: Images at high quality and at 800 x 600 pixels in dimension.
NX-VA1-N1
NX-VA1-N1-DE
NX-VA1-N2
NX-VA1-N3
NX-VA1-N3-DE
NX-VA1-N5
MX-ZA-N10
MX-ZA-N10-DE
I want to resize them into three categories, one as Download Copy, The Site Copy and the Thumbnail Copy and all at a quality of 80%. The PHP file will create the following the subdirectories below and resizes the images according to its instructions, below are the results.
SubDirectory Name: Download Copy
Note: Images at 80% quality and at 398 x 531 pixels in dimension.
NX-VA1-N1
NX-VA1-N1-DE
NX-VA1-N2
NX-VA1-N3
NX-VA1-N3-DE
NX-VA1-N5
MX-ZA-N10
MX-ZA-N10-DE
SubDirectory Name: Site Copy
Note: Images at 80% quality and at 500 x 667 pixels in dimension but doesnt contain the detail copy.
NX-VA1-N1
NX-VA1-N2
NX-VA1-N3
NX-VA1-N5
MX-ZA-N10
SubDirectory Name: Thumbnail
Note: Images at 80% quality and at 75 x 100 pixels in dimension and i want that if a certain item code has a detail copy, it deletes the actual copy and rename the detail in to the actual item code removing the -DE code.
Example: Resize all images. If MX-ZA-N10 has detail copy, delete MX-ZA-N10 then rename MZ-ZA-N10-DE into MX-ZA-N10.
NX-VA1-N1
NX-VA1-N2
NX-VA1-N3
NX-VA1-N5
MX-ZA-N10
Directory Structure
\Images
|-- \Download
|-- \Site
|-- \Thumbnail
Can someone give me an idea as to how and where to start? I usually do it in Photoshop but now that the images have grown a lot, i wanted to automate it to lower the task and time in resizing the files.
Example:
Directory Name: Images
Note: Images at high quality and at 800 x 600 pixels in dimension.
NX-VA1-N1
NX-VA1-N1-DE
NX-VA1-N2
NX-VA1-N3
NX-VA1-N3-DE
NX-VA1-N5
MX-ZA-N10
MX-ZA-N10-DE
I want to resize them into three categories, one as Download Copy, The Site Copy and the Thumbnail Copy and all at a quality of 80%. The PHP file will create the following the subdirectories below and resizes the images according to its instructions, below are the results.
SubDirectory Name: Download Copy
Note: Images at 80% quality and at 398 x 531 pixels in dimension.
NX-VA1-N1
NX-VA1-N1-DE
NX-VA1-N2
NX-VA1-N3
NX-VA1-N3-DE
NX-VA1-N5
MX-ZA-N10
MX-ZA-N10-DE
SubDirectory Name: Site Copy
Note: Images at 80% quality and at 500 x 667 pixels in dimension but doesnt contain the detail copy.
NX-VA1-N1
NX-VA1-N2
NX-VA1-N3
NX-VA1-N5
MX-ZA-N10
SubDirectory Name: Thumbnail
Note: Images at 80% quality and at 75 x 100 pixels in dimension and i want that if a certain item code has a detail copy, it deletes the actual copy and rename the detail in to the actual item code removing the -DE code.
Example: Resize all images. If MX-ZA-N10 has detail copy, delete MX-ZA-N10 then rename MZ-ZA-N10-DE into MX-ZA-N10.
NX-VA1-N1
NX-VA1-N2
NX-VA1-N3
NX-VA1-N5
MX-ZA-N10
Directory Structure
\Images
|-- \Download
|-- \Site
|-- \Thumbnail
Can someone give me an idea as to how and where to start? I usually do it in Photoshop but now that the images have grown a lot, i wanted to automate it to lower the task and time in resizing the files.