accurate and quick resizing of objects?

D
Posted By
dudley
Jan 5, 2004
Views
716
Replies
23
Status
Closed
Hi All

Hope some one can help me out as this is driving me nuts.

Scenario

I am the photographer for a University Earth Sciences department and I have a whole stack of digital photo images of fossil specimens which have been shot by one of our students in a variety of museums around the world over the past couple of years. I now have to prepare these images for publication at a given magnification.

I have exact dimensions between two known points for all of the images (ie in real life I have the measurement from say the back edge of an eye socket to the front of the teeth).

So far so good!

I now need to resize them to a specific scale ie 1:5 so that when they are printed on a sheet direct visual comparisons can be made between the specimens.

The only way I have found to resize the image to a specific scale is to use the measure tool to check the dimension between the known points and then calculate that measurement as a proportion of the whole frame. Next I calculate the percentage increase/decrease required to achieve the correct dimension between the known points. Finally I apply this to the dimensions of the whole image and crop out the area required for printing.

There has to be an easier way! Is it possible to use the measure tool and then change the dimension by typing values in – like you would with a marquee selection tool and thus avoid all the messing around?

If it was just a few images I could easily do it the ‘hard’ way but there are hundreds to be done!

Any suggestions folks? – Unfortunately, giving them back to the student with instructions on how to do it themselves is NOT an option :o(

regards

Dudley

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

PF
Paul Furman
Jan 5, 2004
You would need to do some simple computer programming. Pick two points, a dialogue box asks for the distance and the program does the math & re-sizing. I have no idea what’s involved with photoshop but I could do it in AutoCAD in an hour of fiddling <g>.

dudley wrote:

Hi All

Hope some one can help me out as this is driving me nuts.
Scenario

I am the photographer for a University Earth Sciences department and I have a whole stack of digital photo images of fossil specimens which have been shot by one of our students in a variety of museums around the world over the past couple of years. I now have to prepare these images for publication at a given magnification.

I have exact dimensions between two known points for all of the images (ie in real life I have the measurement from say the back edge of an eye socket to the front of the teeth).

So far so good!

I now need to resize them to a specific scale ie 1:5 so that when they are printed on a sheet direct visual comparisons can be made between the specimens.

The only way I have found to resize the image to a specific scale is to use the measure tool to check the dimension between the known points and then calculate that measurement as a proportion of the whole frame. Next I calculate the percentage increase/decrease required to achieve the correct dimension between the known points. Finally I apply this to the dimensions of the whole image and crop out the area required for printing.

There has to be an easier way! Is it possible to use the measure tool and then change the dimension by typing values in – like you would with a marquee selection tool and thus avoid all the messing around?
If it was just a few images I could easily do it the ‘hard’ way but there are hundreds to be done!

Any suggestions folks? – Unfortunately, giving them back to the student with instructions on how to do it themselves is NOT an option :o(

regards

Dudley
W
wes
Jan 5, 2004
If you are using PSCS, you can set the crop tool to a 1:5 proportion and then crop your images. This could be done as an action and then automated with the batch.

"dudley" wrote in message
Hi All

Hope some one can help me out as this is driving me nuts.
Scenario

I am the photographer for a University Earth Sciences department and I have a whole stack of digital photo images of fossil specimens which have been shot by one of our students in a variety of museums around the world over the past couple of years. I now have to prepare these images for publication at a given magnification.

I have exact dimensions between two known points for all of the images (ie in real life I have the measurement from say the back edge of an eye socket to the front of the teeth).

So far so good!

I now need to resize them to a specific scale ie 1:5 so that when they are printed on a sheet direct visual comparisons can be made between the specimens.

The only way I have found to resize the image to a specific scale is to use the measure tool to check the dimension between the known points and then calculate that measurement as a proportion of the whole frame. Next I calculate the percentage increase/decrease required to achieve the correct dimension between the known points. Finally I apply this to the dimensions of the whole image and crop out the area required for printing.

There has to be an easier way! Is it possible to use the measure tool and then change the dimension by typing values in – like you would with a marquee selection tool and thus avoid all the messing around?
If it was just a few images I could easily do it the ‘hard’ way but there are hundreds to be done!

Any suggestions folks? – Unfortunately, giving them back to the student with instructions on how to do it themselves is NOT an option :o(

regards

Dudley
A
Auspics
Jan 6, 2004
Windows XP has a ‘powertoy’ available from Microsoft which can re-size a whole directory of images to the one size. I don’t use this tool myself but I’m relatively sure it can do what you ask. It’s free so perhaps worth a try?
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.a sp

Failing that, create a droplet to do the task. Just drag a whole CD of images into the droplet and away it will go. Unfortunately the droplet solution will result in each individual image getting done, one at a time whereas the MS image resize will do a whole directory in very fast time.

Doug
———————-
"dudley" wrote in message
Hi All

Hope some one can help me out as this is driving me nuts.
Scenario

I am the photographer for a University Earth Sciences department and I have a whole stack of digital photo images of fossil specimens which have been shot by one of our students in a variety of museums around the world over the past couple of years. I now have to prepare these images for publication at a given magnification.

I have exact dimensions between two known points for all of the images (ie in real life I have the measurement from say the back edge of an eye socket to the front of the teeth).

So far so good!

I now need to resize them to a specific scale ie 1:5 so that when they are printed on a sheet direct visual comparisons can be made between the specimens.

The only way I have found to resize the image to a specific scale is to use the measure tool to check the dimension between the known points and then calculate that measurement as a proportion of the whole frame. Next I calculate the percentage increase/decrease required to achieve the correct dimension between the known points. Finally I apply this to the dimensions of the whole image and crop out the area required for printing.

There has to be an easier way! Is it possible to use the measure tool and then change the dimension by typing values in – like you would with a marquee selection tool and thus avoid all the messing around?
If it was just a few images I could easily do it the ‘hard’ way but there are hundreds to be done!

Any suggestions folks? – Unfortunately, giving them back to the student with instructions on how to do it themselves is NOT an option :o(

regards

Dudley
S
Stephan
Jan 6, 2004
"Techno Aussie" wrote in message
Windows XP has a ‘powertoy’ available from Microsoft which can re-size a whole directory of images to the one size. I don’t use this tool myself
but
I’m relatively sure it can do what you ask. It’s free so perhaps worth a try?
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.a sp
Failing that, create a droplet to do the task. Just drag a whole CD of images into the droplet and away it will go. Unfortunately the droplet solution will result in each individual image getting done, one at a time whereas the MS image resize will do a whole directory in very fast time.

Read the question again mate

Stephan
WS
Warren Sarle
Jan 6, 2004
"dudley" wrote in message

Scenario

I am the photographer for a University Earth Sciences department and I have a whole stack of digital photo images of fossil specimens which have been shot by one of our students in a variety of museums around the world over the past couple of years. I now have to prepare these images for publication at a given magnification.

I have exact dimensions between two known points for all of the images (ie in real life I have the measurement from say the back edge of an eye socket to the front of the teeth).

So far so good!

I now need to resize them to a specific scale ie 1:5 so that when they are printed on a sheet direct visual comparisons can be made between the specimens.

The only way I have found to resize the image to a specific scale is to use the measure tool to check the dimension between the known points and then calculate that measurement as a proportion of the whole frame. Next I calculate the percentage increase/decrease required to achieve the correct dimension between the known points. Finally I apply this to the dimensions of the whole image and crop out the area required for printing.

There has to be an easier way! Is it possible to use the measure tool and then change the dimension by typing values in – like you would with a marquee selection tool and thus avoid all the messing around?
If it was just a few images I could easily do it the ‘hard’ way but there are hundreds to be done!

You could probably write a script for this, using the Photoshop scripting plug-in. Instead of the measure tool, use the rectangular marquee, putting opposite corners on the points of interest. Copy the selection to a new, temporary document. Compute the diagonal size of the new document (Pythagorean theorem), then adjust the pixels/inch of the original document accordingly.

But if you’ve never done any Photoshop scripting before, it might be faster to do 100 images by hand. 🙂
D
dudley
Jan 6, 2004
Warren Sarle wrote:

"dudley" wrote in message

Scenario

snip

You could probably write a script for this, using the Photoshop scripting plug-in. Instead of the measure tool, use the rectangular marquee, putting opposite corners on the points of interest. Copy the selection to a new, temporary document. Compute the diagonal size of the new document (Pythagorean theorem), then adjust the pixels/inch of the original document accordingly.
But if you’ve never done any Photoshop scripting before, it might be faster to do 100 images by hand. 🙂

Hi Warren

No experience of scripting I am afraid. Doing it by ‘hand’ isn’t difficult but it is mind numbingly tedious :o(

I was hoping that someone would point out that there is a function in CS (which I haven’t been able to get a copy of as yet) that does exactly what I want.

It seems to me that this would be a very useful tool to have and is included in the most basic of drawing packages – but not in photoshop. Maybe its time to email the photoshop development team and give them a prod in the ribs.

Thanks to all who have replied on and off list – much appreciated.

Regards

Dudley
A
Auspics
Jan 6, 2004
The OP wants to resize in bulk MS powertoy does just that. What’s the problem Stephen? can’t do the math?
Doug

"Stephan" wrote in message
Read the question again mate

Stephan

TT
Tom Thackrey
Jan 6, 2004
On 6-Jan-2004, "Techno Aussie" wrote:

"Stephan" wrote in message
Read the question again mate
The OP wants to resize in bulk MS powertoy does just that. What’s the problem Stephen? can’t do the math?
Doug

No, the OP wants to measure the distance between known points on each image and then resize each image so that distance is the same on all images. Bulk resizing won’t work because the distance between the points has to be measured for each image. What the OP was asking for is a way to automate converting the mesasurement into a scale factor to be applied when resizing.

From the OP:
I have exact dimensions between two known points for all of the images (ie in real life I have the measurement from say the back edge of an eye socket to the front of the teeth).

So far so good!

I now need to resize them to a specific scale ie 1:5 so that when they are printed on a sheet direct visual comparisons can be made between the specimens.


Tom Thackrey
www.creative-light.com
tom (at) creative (dash) light (dot) com
do NOT send email to (it’s reserved for spammers)
S
Stephan
Jan 6, 2004
"Tom Thackrey" wrote in message
On 6-Jan-2004, "Techno Aussie" wrote:

"Stephan" wrote in message
Read the question again mate
The OP wants to resize in bulk MS powertoy does just that. What’s the problem Stephen? can’t do the math?
Doug

No, the OP wants to measure the distance between known points on each
image
and then resize each image so that distance is the same on all images.
Bulk
resizing won’t work because the distance between the points has to be measured for each image. What the OP was asking for is a way to automate converting the mesasurement into a scale factor to be applied when
resizing.
From the OP:
I have exact dimensions between two known points for all of the images (ie in real life I have the measurement from say the back edge of an eye socket to the front of the teeth).

So far so good!

I now need to resize them to a specific scale ie 1:5 so that when they are printed on a sheet direct visual comparisons can be made between the specimens.

Thanks Tom

Stephan
S
Stephan
Jan 6, 2004
"Techno Aussie" wrote in message
The OP wants to resize in bulk MS powertoy does just that. What’s the problem Stephen? can’t do the math?
Doug

I can do some math.
You are not paying attention when you read.
See Ton Thackrey’s answer.

Stephan
J
jwm2
Jan 7, 2004
dudley,
I understand the problem exactly. I have to do hundreds of yearbook pictures every year with a
varitey of head sizes. The goal is to get all of the head sizes the same size. I have looked in and out
of photoshop for a couple years now without any solution. What I have done is this……
In the crop tool there is a center dot. It is always in the center, which means half the size. I am lucky
when the school needs a two inch high photo with a one inch head size. I take the crop tool and
drag it from top of head to center of crop to chin. Then I move the whole crop box back up centering
the subject and hit "enter". I always have a one inch head in a two inch picture.
I was wondering if you could get your end user to agree to that format. subject 1x with 1/2x border.
It is really fast.
John M
D
dudley
Jan 7, 2004
Hi john

I too have to do loads of mugshots and use a similar method. The thing that makes that easier is that I am shooting the mugshots and so I can make the head size as near as dammit the same in the camera viewfinder so that all I need to do is drop a fixed size crop onto the image. I create an action to apply the crop and save the cropped images to a new folder. At the same time the action creates another very low res version of the image and saves it to a third folder. I then run these images through a little slide show application (Jade – shareware for Mac) which I can race through at a frame or so a second because all I am interested in is making sure the head position is where I want it. ANy images where the head position jumps in the frame I just make a note of its file number and go back and apply the crop by hand. Usually only have to do one or two per cent at most.

The real problem with the fossils is that they have all been shot hand held, the camera – subject distance varies, the size of the specimen itself varies and the resolution varies so each image has to be worked on manually. The accuracy of scale in the final print is quite important as people will often take measurements from the photos to compare against other photos or actual specimens. :o(

regards

Dudley
PF
Paul Furman
Jan 7, 2004
If the scale in the photo is outside the fossil (move and or copy the scale to double it first if not) you can set a fixed crop size. That will also work very easily for the mug shots. The only problem is that it will enlarge the image if the crop is smaller than the target size but I guess that’s what you need anyways for this situation.

Let me know if this doesn’t make sense. I think it should help.

dudley wrote:

Hi john

I too have to do loads of mugshots and use a similar method. The thing that makes that easier is that I am shooting the mugshots and so I can make the head size as near as dammit the same in the camera viewfinder so that all I need to do is drop a fixed size crop onto the image. I create an action to apply the crop and save the cropped images to a new folder. At the same time the action creates another very low res version of the image and saves it to a third folder. I then run these images through a little slide show application (Jade – shareware for Mac) which I can race through at a frame or so a second because all I am interested in is making sure the head position is where I want it. ANy images where the head position jumps in the frame I just make a note of its file number and go back and apply the crop by hand. Usually only have to do one or two per cent at most.

The real problem with the fossils is that they have all been shot hand held, the camera – subject distance varies, the size of the specimen itself varies and the resolution varies so each image has to be worked on manually. The accuracy of scale in the final print is quite important as people will often take measurements from the photos to compare against other photos or actual specimens. :o(

regards

Dudley
D
dudley
Jan 7, 2004
I think we ay be at cross purposes here guys

None of the images has a scale bar in them. Even though there could also be several shots of the same specimen as they were photographed hand held – not on a tripod so the camera to subject distance was fixed they are all shot at different distances – ie diferent magnifications.

The image of the fossil could be just a skull or a skull and neck vertebrae all the way through to a complete animal. The only dimension I have is written in the notes that go with the image – ie specimen measures 6.5 inches between centres of eye sockets or distance between incisor teeth and eye socket is 12 inches etc. There could also be several shots of the same specimen shot at different distances – ie diferent magnifications.

So I have to open the image, measure between the two reference points mentioned in the students notes and then calculate the change to make to the whole image to get it to say x1, x5 or x10 life size. I cant just make the image fit into a predetermined box. The people who want to look at the images want to be able to lay the x1 photos of various diferent specimens – the same size as the animal is in real life, next to each other and make visual and measured comaparisons between the specimens of specific features such as eye socket size and position, attachment points for muscles, wher ethe various sections of skull fuse together as the animal grows etc.

regards

Dudley

regards

Dudley
PF
Paul Furman
Jan 7, 2004
I see.
Here’s an idea.

Make a drawing of a measuring tape (scale) that’s bigger than any of these objects. Resize your canvas to be at least as big as the scale will need to be. Copy paste that into each drawing, use free transform to rotate and scale it (proportionally) then rotate it back to horizontal and use that as a guide for a fixed size crop. Crop again with the marquee selection tool if you have extra space.

That’s how I’d do it visually without pulling out a calculator.

: – )

dudley wrote:
I think we ay be at cross purposes here guys

None of the images has a scale bar in them. Even though there could also be several shots of the same specimen as they were photographed hand held – not on a tripod so the camera to subject distance was fixed they are all shot at different distances – ie diferent magnifications.

The image of the fossil could be just a skull or a skull and neck vertebrae all the way through to a complete animal. The only dimension I have is written in the notes that go with the image – ie specimen measures 6.5 inches between centres of eye sockets or distance between incisor teeth and eye socket is 12 inches etc. There could also be several shots of the same specimen shot at different distances – ie diferent magnifications.

So I have to open the image, measure between the two reference points mentioned in the students notes and then calculate the change to make to the whole image to get it to say x1, x5 or x10 life size. I cant just make the image fit into a predetermined box. The people who want to look at the images want to be able to lay the x1 photos of various diferent specimens – the same size as the animal is in real life, next to each other and make visual and measured comaparisons between the specimens of specific features such as eye socket size and position, attachment points for muscles, wher ethe various sections of skull fuse together as the animal grows etc.

regards

Dudley

regards

Dudley
H
Hecate
Jan 8, 2004
On Wed, 07 Jan 2004 17:25:17 +0000, dudley
wrote:

I think we ay be at cross purposes here guys

None of the images has a scale bar in them. Even though there could also be several shots of the same specimen as they were photographed hand held – not on a tripod so the camera to subject distance was fixed they are all shot at different distances – ie diferent magnifications.
OK, I know this is just a comment and no use whatever <g> but I and my partner do quite a lot of archaeology and the first thing you *always* do when photographing a record shot is make sure there’s a scale in the shot…..



Hecate

veni, vidi, reliqui
J
jwm2
Jan 8, 2004
I have sent Adobe a request to create a feature within the measure tool (much like the crop tool)
in which you could place target goals in boxes. ie. dimension and/or desired resolution. I could see its
use for most graphic layout designers as well who need to place a specific sized item within an image.
For instance, I want the measure tool no matter how far I drag it in my image, to be a certain length and at a certain resolution. Then in the end, crop to size.
I wish more users would request such a feature since it is obvious there are many application which
would benifit by it.
John M.
D
dudley
Jan 9, 2004
Hecate wrote:

On Wed, 07 Jan 2004 17:25:17 +0000, dudley
wrote:

I think we ay be at cross purposes here guys

None of the images has a scale bar in them. Even though there could also be several shots of the same specimen as they were photographed hand held – not on a tripod so the camera to subject distance was fixed they are all shot at different distances – ie diferent magnifications.
OK, I know this is just a comment and no use whatever <g> but I and my partner do quite a lot of archaeology and the first thing you *always* do when photographing a record shot is make sure there’s a scale in the shot…..

And a very valid comment. I too always use a scale bar. Unfortunately no matter how hard I drum it into the students here they struggle to grasp its importance until its too late (in my original post I said that these files were produced by a student – that bit of info got snipped along the way). Wherever possible I get the offending student to sit down and do all the resizing – tends to drum the message home!

If shooting digital I try to include a colour patch as well – or at least a grey scale so that I can set the levels easily in PS.

regards

Dudley
WS
Warren Sarle
Jan 9, 2004
"dudley" wrote in message

The image of the fossil could be just a skull or a skull and neck
vertebrae all the
way through to a complete animal. The only dimension I have is written in
the notes
that go with the image – ie specimen measures 6.5 inches between centres
of eye
sockets or distance between incisor teeth and eye socket is 12 inches etc.
There
could also be several shots of the same specimen shot at different
distances – ie
diferent magnifications.

So I have to open the image, measure between the two reference points
mentioned in
the students notes and then calculate the change to make to the whole
image to get
it to say x1, x5 or x10 life size. …

Windows or Mac? If Windows, I’ll have a go at it this weekend.
D
dudley
Jan 9, 2004
jwm2 wrote:

I have sent Adobe a request to create a feature within the measure tool (much like the crop tool)
in which you could place target goals in boxes. ie. dimension and/or desired resolution. I could see its
use for most graphic layout designers as well who need to place a specific sized item within an image.
For instance, I want the measure tool no matter how far I drag it in my image, to be a certain length and at a certain resolution. Then in the end, crop to size.
I wish more users would request such a feature since it is obvious there are many application which
would benifit by it.
John M.

I will be mailing Adobe just as soon as I find the relevant link on their web site.

I wouldn’t have thought that the development of the measure tool would be a huge project for Adobe and the rewards to many Photoshop users would be immense. I’m not a programmer but it seems to me that PS already generates all of the data required to the calculation. Could this be done as a plug in?

It would be such a huge bonus to be able to ‘draw’ a line between two reference points, enter a dimension into a dialogue box and have PS scale up/down the whole image, increasing or decreasing the canvas size, resampling as it goes to keep the the resolution (might be a good idea to have another part of the dialogue box which gives you a warning of the final images physical dimensions and file size before you hit the go button!)

I currently use PS 6 but would gladly go out and buy a new copy just to get that one feature.

regards

Dudley
M
mscir
Jan 9, 2004
This sounds like a good idea for a filter.

Is Filter Factory the best software for making PS filters?

dudley wrote:
jwm2 wrote:

I have sent Adobe a request to create a feature within the measure tool (much like the crop tool)
in which you could place target goals in boxes. ie. dimension and/or desired resolution. I could see its
use for most graphic layout designers as well who need to place a specific sized item within an image.
For instance, I want the measure tool no matter how far I drag it in my image, to be a certain length and at a certain resolution. Then in the end, crop to size.
I wish more users would request such a feature since it is obvious there are many application which
would benifit by it.
John M.

I will be mailing Adobe just as soon as I find the relevant link on their web site.

I wouldn’t have thought that the development of the measure tool would be a huge project for Adobe and the rewards to many Photoshop users would be immense. I’m not a programmer but it seems to me that PS already generates all of the data required to the calculation. Could this be done as a plug in?
It would be such a huge bonus to be able to ‘draw’ a line between two reference points, enter a dimension into a dialogue box and have PS scale up/down the whole image, increasing or decreasing the canvas size, resampling as it goes to keep the the resolution (might be a good idea to have another part of the dialogue box which gives you a warning of the final images physical dimensions and file size before you hit the go button!)

I currently use PS 6 but would gladly go out and buy a new copy just to get that one feature.

regards

Dudley
H
Hecate
Jan 10, 2004
On Fri, 09 Jan 2004 08:47:27 +0000, dudley
wrote:

And a very valid comment. I too always use a scale bar. Unfortunately no matter how hard I drum it into the students here they struggle to grasp its importance until its too late (in my original post I said that these files were produced by a student – that bit of info got snipped along the way). Wherever possible I get the offending student to sit down and do all the resizing – tends to drum the message home!
If shooting digital I try to include a colour patch as well – or at least a grey scale so that I can set the levels easily in PS.
I dunno, students nowadays! 😉

Glad you make them do the resizing where possible. Perhaps they need an incentive like "get it wrong, fail the topic/course" ? Or, in these PC days aren’t you allowed to do that anymore? 😉

That’s a good point about including a colour patch. Most of photography was nature (with the added archaeology) and I used to shoot an 18% gray card as the first frame of every roll to show me the colour/exposure characteristics of that particular roll.



Hecate

veni, vidi, reliqui
FA
Fred Athearn
Jan 14, 2004
On Mon, 05 Jan 2004 10:06:44 -0800, Paul Furman
wrote:

The only way I have found to resize the image to a specific scale is to use the measure tool to check the dimension between the known points and then calculate that measurement as a proportion of the whole frame. Next I calculate the percentage increase/decrease required to achieve the correct dimension between the known points. Finally I apply this to the dimensions of the whole image and crop out the area required for printing.

There has to be an easier way! Is it possible to use the measure tool and then change the dimension by typing values in – like you would with a marquee selection tool and thus avoid all the messing around?

Suppose you did this: You use the measure tool and the rotate feature to get your known measured reference line either vertical or horizontal. Then you use the crop tool and set the appropriate dimension in the crop option bar to be equal to the measured reference, set the other dimension to blank and the pixels per inch to blank. Then crop so that the height or width just matches the reference measurement points.

After you perform that crop you select the "Front Image" button in the crop options bar. When you do this you will get some odd fractional number of px per cm and that represents the ratio needed to make the measurement the desired length.

You then close the cropped image without saving and reopen it again. You clear both the dimensions in the crop options but leave the calculated number of px per cm from the first step.

Now when you crop the image again, perhaps including everything, the length of the measured part should be correct.

If you need to do further scaling on all the images that probably should be done as the publication is being laid for publication, of course keeping the same relative size if each image.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections