Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Exporting layers to images in both Photoshop and Gimp is easy.

But is there a way that any of these tools create a TXT file for each exported image which would contain some information about exported image? One txt file for each exported image.

Information I am talking about is size and resolution (and so on). Ideally the script would export these information in a structured file like

<size></size>
<resolution></resolution>

Is this possible? I am guessing someone must have had written such add-on.

share|improve this question
    
Couldn't you extract this information from the exported image files? Or is any of this information only available in the source file(s)? –  Daniel Beck Oct 6 '13 at 18:06
    
@DanielBeck Extract manually? That is too slow and too many images. –  JoeM Oct 6 '13 at 18:15
    
No, using a script similar to what I provided in this question which could trivially be adapted to add a text file per image file containing the desired information (if available in the exported images at all) instead of opening a dialog box. –  Daniel Beck Oct 6 '13 at 20:36

2 Answers 2

It appears that you can do it with Photoshop scripting (javascript). Here is an example of a script that exports to a text file. Exporting the images and collecting the data on dimensions etc is also supported.

References to get you started in the world of Photoshop scripting:

share|improve this answer

I suggest using the excellent exiftool and using a command to do this. This command creates a txt file for each image file in the folder. You could of course include a lot more meta data than resolution and size.

exiftool.exe -ImageSize -FileSize pathFolderWithImages -w .txt

You could even get the output as one json (or xml or html) file per folder with this:

exiftool.exe -ImageSize -FileSize -json pathFolderWithImages > data.js

Get the tool and learn more about exiftool.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.