Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Somebody asked me recently, how do I'm import a folder full of images so that each image shows up on a different page? Well, InDesign can do this, but you have to use a script. Actually, I'm going to show you two different scripts that do similar things. Don't be scared fo the word script, they're really easy to use. Because I'll be using scripts, I need the Scripts panel, and I can find that if I go to the Window menu, go down to the Utilities submenu, and then choose Scripts. Now, InDesign Scripts panel has two different folders in it, Application and User.
The script tells me that there are 16 images inside this folder and it's going to import all of them. It can lay these images out as a grid on the page, but remember what we're trying to do is have one image per page. So, I'm going to set the rows and columns to both one. Just one row, one column, with just one image per page. The fitting area lets me tell this script let's me tell this script how I want to scale the images inside the frame. In this case, I want to scale the images up to fit the frame and make sure that the frame fits the content, so the frame and the images are the same size.
I even have an opportunity to turn on labels. For example, I can have each image have the file name, the file path, or XMP metadata from inside the image. In this case, I don't even want to have any of those things, so I'm going to turn off the Labels checkbox. I just want the images. Now, we're ready to import, so I click OK and InDesign builds a page and imports all of the images, one image per page. It's done. It just takes a few seconds. I'll click OK, open the Pages panel, and you can see we now have 16 different pages, each one with a different image.
So, the ImageCatalog script is one great way to import a bunch of images very quickly, but there are a couple of problems with it. For example, you have no way of controlling how large the frame should be on each page. Another problem is you can't design the page. Maybe I wanted to have a background behind all of these, or maybe I wanted to put some other information about the artist on every page. So, I'm going to show you one more technique, which is a little bit more complex but it gives you all kinds of other options. First, I'm going to close this document, because I don't need it anymore, and I don't need to save that.
Second, I need to install a new script. Now this script does not ship with InDesign, this is one that you have to download from the Internet. You can find it here at indesignsecrets.com, in their article called, Import a Folder Full of Pictures, One Per Page. When you download that script, it's going to be downloaded to your Downloads folder as a .jsx file, and then you can import it into your Scripts panel. Now, I've already downloaded that script and it's sitting in my Downloads folder. I'll switch back to InDesign. I'm going to go to the top of my Scripts panel and close my Application folder because I'm going to put my script, my new script that I downloaded, into the User folder.
To put a script inside my User folder, all I need to do is right-click on that folder or Ctrl+click with a one button mouse, and choose reveal in Finder. On Windows, it would be Reveal in Windows Explorer. Suddenly, I see the folder called Scripts, and inside Scripts, there's a folder called Scripts Panel. Any script that you put inside the Scripts Panel folder will show up in the panel. It's as easy as that. So, here's the script that I downloaded, and all I need to do is drag it into the Scripts Panel. If I open the Scripts Panel, I can see the script there.
I also notice something wrong, and that is, the script has a .txt at the end. It's suppose to be just .jsx, so I need to edit this to get rid of that .txt. Yes, I am sure that I want to use .jsx, there we go. So, I have now installed a script into the Scripts panel, and if I go back to InDesign, I can see it right there inside the User folder. All I have to do is click that little triangle and there it is. You don't have to restart InDesign or anything like that. All right, so that's the first step, now I need to run this script.
In order to run this script, I have to have a document open. So, I'll just go to the File menu, choose New > Document, and then click OK. Now, I'll double-click on the script to run it and InDesign asks me the same thing. What folder do you want to use? So, I'm going to choose Images and click Open. It doesn't appear that anything happened at all because all this script does, is it writes a little text file inside that folder. It's a .csv file. That's a comma separated data file, similar to the kind of thing that you would export from Excel or a database.
I ran that script because I need that CSV file in order to import the images using this other technique. The technique uses data merge. So, I'm going to open the Data Merge panel, which I find here grouped with the Scripts panel. If it weren't grouped with that panel, all I'd have to do is go to the Window menu, choose Utilities and then choose Data Merge. Now, data merge lets me import data, and the data that I'm trying to import is those images. So, I'm going to go to the Data Merge pop-up menu, this little fly out menu at the top, say,Select Data Source.
Now, I'm going to navigate inside the Images folder. And I can see, down at the bottom, here's the images.csv file that, that script created for me. The script went through and made this CSV file that describes where each one of these images are inside this folder. I'll click Open, and you can see that the CSV file has two bits of data, the Name and the Images. All I have to do now, is give myself a graphic frame and click on Images. Now, because of that CSV file, InDesign knows where the image is and I've told it where to put the image, inside this frame.
I'll go back to my selection tool because I want to do one more thing that's really important at this point, and that is to give this an object style. I'll open my Object Styles panel and say, give me a New Object Style, and I'll give it a name, I'll call this image frame. It doesn't matter what you call it, and really, it doesn't matter what you set this up as right now, because later on we can change it to anything we want. Let's go ahead and click OK, and then click on the object style to assign that object style to this frame. If I want to test this to make sure the image is going to go into the right place, I can do that by turning on the Preview checkbox.
As soon as I do that, you'll see that InDesign places the first piece of data, that first image, inside the frame. Now, I can move through them one at a time by clicking on these little arrow buttons. But, when I'm done previewing and I really want to import all these images, all I have to do is click over here in this right side button called Create Merge Document. Here, I can control which images are going to be brought in. In this case, I want all of them. And then if I click the Options tab at the top, I can tell InDesign what to do about the images, how to fit them to the frame.
Right now I have them set to Fit Images Proportionally, but if I wanted to make that the image fills the whole frame, I could chose Fill Frames Proportionally instead. That's all the set up I need to do. To import the images, I click OK and InDesign creates a new document based on this template, and it fills all of those frames with the images. It only takes a few seconds, even if you have dozens of images or even hundreds of images. And it tells me that no overset text was generated. That's okay, because there was no text in here at all anyway, it was just graphics.
So, I'll click OK. I'll move the panel out of the way and we can see that in the Pages panel, we have a similar thing, 16 different pages and each one has an image in it. I'm just double-clicking on those to move from one page to the next. Once again, the benefit of using Data Merge is that we have a lot of control about where the images are, how large the frames are and we can use those object styles. So, if I go back to my Object Styles panel, I can right-click or Ctrl+click with a one-button mouse, on the image frame and then edit it.
So, I could say, let's go ahead and give this a stroke perhaps. Let's give it a black stroke, let's make it really thick, and we can put a special type around it, like thick thin. And then let's set the gap color to paper. Click OK, and you'll see that now all of these have a special frame around them. I'll just press Shift+Page Down, to go from one to the next. Now, I know this second technique, this data merge technique, seems like a long process, running the script and running data merge and so on. But, believe me, after you do it once or twice, it actually goes extremely quickly and you can import hundreds of images in less than a minute.
Get unlimited access to all courses for just $25/month.Become a member
120 Video lessons · 63192 Viewers
119 Video lessons · 70906 Viewers
125 Video lessons · 31925 Viewers
84 Video lessons · 18575 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.