0

Given a list of images, you can manually send them to Chrome which will report their horizontal and vertical pixel numbers.

This can take hours in the middle of what should be a programmable task. How?

Again, manual works just fine but takes too long. Need to send a list to something that returns sizes.

This is part of using .PDF to replace .xsl. Details at http://www.tinaja.com/whtnu19.shtml

Eliminate several hours of manual programming from what should be a fully automated process. Must work on all flavors of images.

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • What language are you programming in? Where are these images stored? E.g. are they just a bunch of files on disk? – Matt Hall Oct 26 '19 at 20:11
  • Presently prefer a postscript solution, but ANY way of inputting a list of filenames and getting the resolutions back programatically would be welcome. Images are stored on my website and on host PC and their names are derived from sitemap_images.xml – Don Lancaster Oct 29 '19 at 21:56
  • The big picture at https://www.tinaja.com/whtnu19.shtml#d10.29.19 – Don Lancaster Oct 29 '19 at 21:59

2 Answers2

0

You should not need a programming environment to do this, I think you can do it in the OS. For example:

I'm a Python person, so I'd probably use pillow (from PIL import Image; img = Image.open('image.jpg'); print(img.size)) but it's straightforward to do in most modern languages, e.g. see this question for a JavaScript solution: How to get image size (height & width) using JavaScript?

Which approach you use depends on where you're getting the rest of your workflow done.

Matt Hall
  • 7,614
  • 1
  • 23
  • 36
-1

Turns out that exactly what I needed was mediainfo. Two alternatives are .bat files and a powershell.

Thanks for your help. Follow the progress at http://www.tinaja.com/whtnu19.shtml