x4ntos Posted June 30, 2006 Posted June 30, 2006 OMG, I have just wasted a whole day trying to figure out how to make my rectangular images have square 1:1 ratio thumbnails. I'd like them not to be strecthced in any way, but to have fixed size and the rest of the, let's say 200 x 200 px box, filled with white color. Can't find any contribution that would be doing this and I'm sick with my thumbnails differing from like 30 x 120 to 70 x 120 and whole page looking like s.... well let's just say that it doesn't look good. I thought about changing aspect ratio's of my big images... but i'm not so deperated yet to manipulate with 2000 pictures :> I'd really really appreciate any help.
spax Posted June 30, 2006 Posted June 30, 2006 Pretty much impossible for a rectangle to have a 1:1 ratio, resulting in a square. The only way you could have that, would be to copy the image onto a square background.
x4ntos Posted July 1, 2006 Author Posted July 1, 2006 Thanks for the answer :) Well I thought about this way earlier. I wanted to make all my big photos square, but it's too much work with 2000 pics :/. I thought that a good script in photoshop would do the job, unfortunately I didn't find one. It would have to increase size of the canvas to the square with sides equal to the lenght of the longest side of source image, than fill the bg with white color and save as new image.... I was also looking for a thumbnail generator program that would do the job ... with no result either. But I still can't believe that there is no contribution for oscommerce that would be able to make square thumbnails from rectangular images just by adding white background to them... Even windows has something like that ! :( Check it, set in the view options of folder option - "miniatures" and you'll see that all pics have the same square shape and size... Would really appreciate any further help... I don't want to spend another few days playing with phostoshop and resizing pictures :(:(
spax Posted July 2, 2006 Posted July 2, 2006 To be honest, I don't really understand why this is a problem. Even if you set a white fill, you will still have your image in the middle of it. Therefore, the smaller images will have more fill than the big ones and will look, pretty much, like what you have now. It would be possible to achieve what you want, I don't know how right now, but it is only code. You can tell it to do what you want. As far as Photoshop goes, you could make it less tedious to resize or increase canvas size with a macro. If you could open, just for arguments sake, your 10 biggest images. Starting with the very biggest first, increase the canvas size by either width or height to get it square, then reload from disk or CTRL Z. That is so you know exactly what dimensions you are going to work with and how to resize the canvas. Now find the macro facility. It has been a long time since I used Photoshop, since I formatted and have been too lazy to reinstall but it was called either Macros or Actions and is on a tab, in the toolbox in the workspace. At the bottom of the toolbox, you will see tape recorder like buttons and some other options, like a dustbin (for delete). One of those options is to create a new Macro/Action, click on that you will get a dialogue box to name the Action plus a record button. When you are ready to start, click record and everything you do now will be recorded. Again starting from the biggest image, resize the canvas, save it - maybe best to save in a new loaction just in case you're not happy with the changes - then close it. Work your way through all 10 images doing the same and once you have done them all, click stop on the macro recorder. Now all you need to do is open another batch of 10 images, select your macro (just click to highlight), press the play button and Photoshop will do the same to those 10 images, in about 2 seconds. You could do 2000 images in 10 minutes or so.
x4ntos Posted July 2, 2006 Author Posted July 2, 2006 Nahh... to complicated :P Few lines of java and a script for photoshop did the job :) Thanks for the anwer anywy.
bandix Posted August 8, 2006 Posted August 8, 2006 I'm having the same problem, can you plz post how you fixed the problem?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.