Skip to main content
Inspiring
March 31, 2025
Question

Batch Importing 1000 SVGs into Photoshop Timeline via Place Embedded

  • March 31, 2025
  • 3 replies
  • 1607 views

I have approximately 1000 SVG files stored in a folder on my Windows 10 system. I need to import all of these SVGs into the Photoshop timeline using the 'File > Place Embedded' feature. 

 

I'm avoiding the 'Import Media' option because it's significantly slower when dealing with this large number of files. 'Place Embedded' is much faster, but I don't want to manually select each SVG file individually. 

 

I'm looking for a way to automate this process. Specifically: 

 

  • Is there a script that can automatically import all the SVG files from the folder using 'Place Embedded'?
  • I've tried recording an action to select the SVG folder, but I'm unsure how to make the action select a new, unselected file each time it runs. How can I modify the action to achieve this? 

 

I'm currently using Adobe Photoshop 21.0.3 on Windows 10.

 

3 replies

Stephen Marsh
Community Expert
Community Expert
April 1, 2025

@Pubg32486011zfgs – Why? Why do you want to do this in Photoshop? You already have a "Flourish template_ Bar chart race.htm" file that provides an animation in a web browser.

Inspiring
April 2, 2025

I want to convert my bar chart race into a high-quality 4K upscaled video and share it on YouTube. However, my PC is very old, and I have tried many screen recording tools with different settings, but none of them have helped. All the recorded videos are blurry and not properly upscaled.

Conrad_C
Community Expert
Community Expert
April 2, 2025
quote

I want to convert my bar chart race into a high-quality 4K upscaled video and share it on YouTube.

By @Pubg32486011zfgs

 

If it starts out available as SVG from Flourish, then it’s vector graphics, and vector graphics are resolution-independent (they scale with maximum sharpness at all sizes). Therefore I wouldn’t convert them to any pixel format like PNG where upscaling would look worse, and where 4K would result in huge file sizes. I’d keep the graphics in a vector format.

 

Of course the ideal solution would be to find a video editor or animation app that can both import SVG directly and rasterize it at 4K. I don’t know much about this but a web search turned up this affordable app that can import SVG and export MP4, maybe take a look at it:

Expressive Animator

“Everything you need to create stunning SVG animations in minutes.”

 

Some apps like Adobe After Effects do import some vector formats such as Adobe Illustrator and can export to 4K video for YouTube. One way to use it might be:

 

1. Bulk convert the SVG files to Adobe Illustrator (.ai) format. This might be possible by building an action (macro) or script in Illustrator. 

2. Import the Illustrator versions to an Adobe After Effects timeline in a composition set to a 4K frame size.

3. Make sure Continuous Rasterization is enabled for the composition. This will render the Illustrator vector files at the full resolution of the 4K composition. 

4. Export to video for upload to YouTube.

 

I haven’t actually tried that, so you’d have to test it. However, After Effects can require a powerful PC for 4K work, so it might not work great if your PC is slower or doesn’t quite meet the recommended system requirements.

Legend
April 1, 2025

Bridge has a Tools->Photoshop->Load Files into Photoshop Layers command that works for SVG files. Have you tried that?

Stephen Marsh
Community Expert
Community Expert
April 1, 2025
quote

Bridge has a Tools->Photoshop->Load Files into Photoshop Layers command that works for SVG files. Have you tried that?


By @ExUSA

 

Nice idea.

 

I did try without Bridge, simply using the Load Files into Stack script. It doesn't create smart objects and rasterizes the SVG content to around 2032 x 1598 px in size on a canvas 3417 x 1710 px in size. 

 

Although these pixel dimensions are not large, things add up when you have 500-1000 layers.

 

It still takes time, I think that "this is what it is".

Stephen Marsh
Community Expert
Community Expert
March 31, 2025

You're going to need a script.

 

Can you provide sample files at a file sharing site like DeopBox, WeTransfer etc?

 

* A completed layered PSD example of the final required result, with 5-10 example SVG files placed at the correct size and position with the required timeline options etc.

 

* The same 5-10 individual SVG files and the PSD template

Inspiring
March 31, 2025

following is sample files: 

https://easyupload.io/epuw45 

 

I wrote following script and it working good but it is still very slow! I can not import 500 or 1000 number of SVG files very fast to photoshop and this is very bad for me - I'm afraid this problem won't be solved: 

#target photoshop
var folder = Folder.selectDialog("Select Folder Containing SVG Files");

if (folder) {
    var files = folder.getFiles("*.svg");

    if (files.length === 0) {
        alert("No SVG files found in the selected folder.");
    } else {
        for (var i = 0; i < files.length; i++) {
            if (ScriptUI.environment.keyboardState.keyName == "Escape") {
                alert("Script stopped by user!");
                break;
            }
            placeEmbeddedSVG(files[i]);
        }
    }
}

function placeEmbeddedSVG(file) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();

    desc.putPath(charIDToTypeID("null"), new File(file)); // Select file
    desc.putEnumerated(charIDToTypeID("FTcs"), charIDToTypeID("QCSt"), charIDToTypeID("Qcsa")); // Place as smart object
    executeAction(charIDToTypeID("Plc "), desc, DialogModes.NO); // Execute "Place Embedded"
}
Stephen Marsh
Community Expert
Community Expert
March 31, 2025

There is no requested example PSD to determine the size and positioning, nor the timeline aspects of the SVG files placed into Photoshop. So what is the required width and height in pixels of the SVG files? Will they all be placed as separate layers and you will then create the required timeline from the layers?