Link in Zwischenablage kopieren
Kopiert
Trying to find out if there is a way I can export the pages of an InDesign document so that each exported jpg could have a unique name I am able to specify before exporting, instead of going in afterwards and renaming each one.
Link in Zwischenablage kopieren
Kopiert
Good idea! I think our licence does allow installing CC on two devices, so I will look into that. Not sure I understood the teamcloud fully, but do you mean I can tell my IT to connect my private login to our company plan somehow (and it won't cost them more)? Mari
Link in Zwischenablage kopieren
Kopiert
I dont know, which AdobeID you use at your company. I guess, its not the same as your ID you use at home. Im no expert on the teamcloud, but it should be possible to log in at home with your company AdobeID, if known, and download as assigned applications, like current InD CC and some versions below.
In our company, our IT is not very good, and our gfx-department, with 'these macs', isn well supported at all. So they never dished out AdobeID for new coworkers upfront, but let us users create an ID, and then add it to their teamcloud-id-management.
The CC-apps can be installed on 3 machines, and will talk to the cloud, if another machine is added, so that you have to choose to drop the first machine and install to new machine. If after activation the machine isnt connected to the internet, you will be able to use the install for one month without sync.
If your company is large, and your abo-plan is the Enterprise-model, your IT can customize the Adobe-services for each ID. And copyright-ish you can set all files leaving this CC will be company-copyright. The 'small'-teamcloud doenst have these enterprise-features. If copyright is a big thing tho, your boss maybe has to understand that there will be no global extinction nor rampage, if you use the CC for some private projects too
Link in Zwischenablage kopieren
Kopiert
I'll talk to IT on Monday. We have Enterprise account and log in with managed usernames and passwords.
Thanks again for all your help
Link in Zwischenablage kopieren
Kopiert
Moving the discussion to InDesign Scripting
Link in Zwischenablage kopieren
Kopiert
Hi Jan,
it's true. png export was introcuced with CS6.
But one could do some tricks to get PNG out of InDesign with CS5.5 as well.
Consider:
document.epubExportPreferences
document.exportForWebPreferences
document.htmlExportPreferences
document.xmlExportPreferences
All of them have property imageConversion and one of the possible values is ImageConversion.PNG.
Of course you have to make sure that the contents you want to export will get rasterized.
Did not test this, but maybe its sufficient to group the stuff and paste it inside a graphic frame.
How would you control image quality?
You can do that with property imageExportResolution of e.g. epubExportPreferences that can be set with e.g. value ImageResolution.PPI_300. Only fixed values are possible. So you may have to scale the contents you like to export first to meet individual requirements.
You could look up all properties and possible values at Jongware's repository here:
Regards,
Uwe
Link in Zwischenablage kopieren
Kopiert
Just reporting back – the script works beautifully, thank you again!
The only thing I have been 'troubleshooting' is the quality of the resulting PNGs. Many angles and arches are looking quite jagged or fragmented, but it can be down to many different reasons and factors. I am processing 1500+ images so it could just be the sheer volume causing some undesired effects. The script definitely seems to produce better results from highres jpgs/tiffs than highres pngs. The script uses the Maximum setting, but InDesign must be resampling the images to PNG in some 'default' way as there are not many options or advanced options to choose from. In Photoshop there are many more choices at the downsampling stage, but of course PS is always the preferred way of handling images for the best quality anyway. However I have to use ID for time saving reasons, and luckily the quality is mostly ok
For some of the problem images I tried a slightly different process: I decided to save them as a high quality PDF (I had used 'filename script' to import custom image names on an invisible layer and exported them as bookmarks using the Table of Contents function). I then opened the PDF in Acrobat Pro and split the pages into single files using the top level bookmarks as custom filenames. Then I set up an action in Photoshop to open, scale down and save the individual PDFs as transparent PNGs. That seemed to help with the jaggedness.
Thanks again for your help!!
- I ❤️ technology -
Link in Zwischenablage kopieren
Kopiert
Glad to hear youve got it done. And, wow, what a batch of tasks to wiggle around the quality issue.
But just to have that checked: Did you set
antiAlias | bool | r/w | If true, use anti-aliasing for text and vectors during export. |
?
(Adobe InDesign CS6 (8.0) Object Model JS: PNGExportPreference)
Link in Zwischenablage kopieren
Kopiert
HI DBLjan, I just copied Kasyan Servetsky's script and ran with it. I don't know how to amend the script to 'add' your anti-alias to it. But would it even make any difference since it's for type and vectors?
A lot came out good quality too, which is fantastic! But as mentioned, some particular type of images had jaggedness. It is quite possible that some of the linked 'originals' had been already scaled down to 300dpi from Photoshop psb files, these have been done over the years and by many different people when I wasn't even there yet. It's not an ideal starting point but we do what we can for a good end result. It's sometimes a bit hard to know where to draw the line between manual work for the perfect outcome vs. the automated process for acceptable quality LOL, the time used for each is dramaticvally sooo different. But there always seems to be more time to redo things!
Link in Zwischenablage kopieren
Kopiert
Try to test that out somewhere between these lines like
app.pngExportPreferences.transparentBackground = true;
that define the png options. Use this line:
app.pngExportPreferences.antiAlias = true;
I assume youve used InDesign for something other than just plain images on the pages. If you used texts, boxes, shapes or whatnot, it could be an upgrade to your quality issue.
Link in Zwischenablage kopieren
Kopiert
Thanks, I will give it a go. I don't usually have to do heaps of PNGs this way so didn't even thing about the anti-alias thing – but of course it might have an impact. Thanks again – I will be hurrying to work in the morning to test it!! eagerbeaver
Link in Zwischenablage kopieren
Kopiert
Dear Kasyan Serevetsky,
Have used you jpg script in the past. Somehow I could not get the png version to work BUT
Since you surely know a lot more about jsx files than me I wonder if you can help me with the following?
- I have a indesign document with on every page one image, I would like to export the page with the name of the image. Can you adjust/ write a the script that can do that?
later on I can add a prefix with the programma totalcomander
I hope you can help me
Greetings
Brent
Link in Zwischenablage kopieren
Kopiert
RE Export pages to jpg with custom filenames
HELP PLEASE!!
If I have 10 pages in my InDesign document and want to export all 10 pages at once as individualy named JPGs, what do I need to do?
Do I have to use separators in the box that pops up when I execute the script, or amend the script in some way
.
Help would be greatly appreciated as it would save me hours of renaming time when my boss keeps changing his mind!!!
Regards - Janice
Link in Zwischenablage kopieren
Kopiert
For renaming files, use Bridge.
Bob
Link in Zwischenablage kopieren
Kopiert
That won’t work for me as each page (over 200 of them) have unique names but always get exported with these unique names.
eg bclol2pk.jpg bogofp.jpg and it goes on.
Bridge will defiantly come in handy when I have to add the prefix for each new batch.
The forum: http://forums.adobe.com/message/3063985 seemed to suggest I could run the script that could export each page as a unique JPG name.
Thank you!
Janice
Link in Zwischenablage kopieren
Kopiert
Did you try the script in Post 5?
Link in Zwischenablage kopieren
Kopiert
Yes I have, but I don't get a unique name, except for the page number which I don't need. I get something like:
ap11_1.jpg
ap11_2.jpg
ap11_3.jpg
and so on.
So I'm just getting the "Basic Name" which I specified when I ran the script and page names, BUT don't know how to get the unique name for each exported JPG.
Thanks for your help!!
Janice
This would be perfect if I could get it to work.
Link in Zwischenablage kopieren
Kopiert
I guess I don't understand what you mean about each page has a unique name. Are you saying you need to export the pages to a series of unique names that have no realtion either to each other or to the original filename? I don't believe you will be able to automate that.
Link in Zwischenablage kopieren
Kopiert
I just thought that within the script I could add a string so that the script for example would export:
Export page 1 as : ap11_bogofp.jpg
Export page 2 as : ap11_bcolpk.jpg
Export page 3 as : ap11_bcolpkpap.jpg
and so on
Ah well, no harm in asking!!
Thank you for your help!
Kind regards - Janice
Link in Zwischenablage kopieren
Kopiert
You could pick up names from an external text file (a more complex script), but you'd need to create that file. Otherwise, variable text in the string is probably limited to sequential numbers.
Link in Zwischenablage kopieren
Kopiert
Thanks – I wouldn't know where to start.
There may be someone at work who can help re scripts.
Thank you again!!
Janice
Link in Zwischenablage kopieren
Kopiert
jchapmans wrote:
I wouldn't know where to start.
Think it over before asking in the scripting forum. Where would these file names come from?
I just thought that within the script I could add a string so that the script for example would export:
...
Well, where would these additional strings come from? It depends on what you want to use this script for -- if, for example, these postfixes are always these three "bogofp", "bcolpk" and "bcolpkpap", then it's a simple addition to the existing script. However, you say "and so on" so we'd have to know what to append to all other possible pages.
Link in Zwischenablage kopieren
Kopiert
What would be awsome for me is a Text variable that can be inserted in the name of each page.
Link in Zwischenablage kopieren
Kopiert
I’ve given up with on InDesign
Played with fireworks – decided to get everything into Fireworks and individually name the slices – sorted!!
Thank you for all you help!!
Regards - Janice
Link in Zwischenablage kopieren
Kopiert
This is what I am looking for - do you know of such a script or can you help out? I have a excel file where I have all the names in correct order 1 - name1; 2 - name2 etc.
I am a mediocre user of indesign and cant write my own
Link in Zwischenablage kopieren
Kopiert
Does anyone know how to do this with the script returning the page size instead of the page number? I'm using InDesign 2017 and have a multiple page document that has essentially the same graphic saved at different page sizes, so I'd like to use the basename of the file and then append the page size of each page (currently in pixels) at the end of each name.
Weitere Inspirationen, Events und Ressourcen finden Sie in der neuen Adobe Community
Jetzt ansehen