Hey everyone, i'm working on a script for exporting all images from the indd file and faced wired issued with one the template. For some reason when i retrieving image type i'm getting empty string (in other templates everything works fine). I haven't any information why it can be empty. Has anyone faced something like this?
Example of script which i used:
your code should work.
Just tested your code with a placed and embedded JPEG image on master A-Cover:
German InDesign 2021 version 126.96.36.199 on Windows 10.
( ACP )
Hey, thanks for try and reply.
Is your result only with this particular image file?
Or do you get the problem with all placed image files?
What's your exact version of InDesign and OS ?
( ACP )
Hi! Thanks for reply, i'm using macos bigsur v11.4 and InDesign v14.0.3, also the same result i'm getting ofn server version of InDesing with same version. In this particular template all of jpeg images return empty string instead of type.
Hm. I'd be surprised if I'd see an issue with my InDesign 188.8.131.523 on Windows 10.
Another test with that particular version is showing: No issue.
So perhaps this is an issue with your particular document?
Test if you see a result if you export the document to IDML, open the IDML file as document and save to a different name. Or copy one of the embedded images to a new document. Or unembed the images.
If this is a real bug with InDesign it could be a bug with the Mac OS version.
To test this run your code on a Windows machine.
( ACP )
Tried it on Windows and tried case with IDML file and nothing changed. But then i tried unembed image, it had been saved, then i tried to add this saved image to newly created document and everything works fine there, i can retrieve its type! So, it definately problem with specific indd file.