Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Resize image using ruler measurement

New Here ,
Jun 13, 2008 Jun 13, 2008
Hi everyone. I am completely new to Photoshop scripting, and would love to get any kind of help that you can provide me with.

I have thousands of object photos with physical cm scales in them. However, since the zoom level differed for each photo, they are all at different scales. What I would like to do is to resize all the images so that they are all to scale.

To do this manually, what I've traditionally done is:

(1) Take the Ruler Tool and measure a segment of the centimeter scale in the photo, say 4 cm worth;
(2) Take the measurement from the Info window (say, e.g., 32.83 cm);
(3) Calculate the percentage of resizing required to bring (2) to a nice rounded number. So, in this case I'd say, let's bring it to 30 cm, which is 93.52% of 32.83;
(4) In "Image Size", I would resize it without resampling by 93.52%
(5) For all other images, I will repeat (1)-(4), always measuring 4 cm on the screen, and always resizing the image so that a 4 cm segment of the scale would end up being 30.0 cm on screen.

However, this time around, I have thousands of photos and doing this manually would kill me. I have a feeling that a simple script and/or Actions would take care of (2)-(4) for me. I.e., I would take the Ruler Tool and take the measurement, then hit a function key and everything else is taken care of. The script would read what the Ruler Tool's last measured length was, and resize it so that the segment would always end up being a predefined length (in this example, 30.0 cm) on the screen.

So, the question is, is this possible, and if so, where could I go to learn how to do this?

Thanks in advance for any help you can give me.

R
TOPICS
Actions and scripting
3.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Jun 13, 2008 Jun 13, 2008
LATEST
Oops, sorry, one mistake. (4) should be "In Image Size, I would resize it *with* resampling to 93.52%"
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines