Hey - i am trying to resize lots of pictures by a special system. These are pictures of objektes and the dimension of the pictures are exactly the one the the object. E.g. I have got a foto of ring with 2,5cm height and the pictures has the some height. The picture has got 2500px height - so the resolution is 2540 dpi. Now i want to resize the picture to 1000px and keep the height of the picture. So in fact the resolution has to change to a ca. 1013 dpi. Photoshop is not possible to do this. Irvanview as got a special button to solve this - but is not possible to do this in batch mode.
I need a script in java script to solve this. Iwas programing turbo pacal 25 years ago - but I cant get into javascript myself.
This is want i need:
get document.heigh before
resizeImage (height = 1000px , resample)
resizeImage (height.before, no resample)
Does any one get wath I am look for? My english is to bad.
And after we have solved this. the script must be inteligent to find out the longer side (width or height) and take this as the resizing basis.
Hope for help - best in german
Rainer