Smart Attachment Import Bulk image import for ERPNext: one workbook, every photo
About
Smart Attachment Import is a Savyant Systems app for ERPNext v16 that attaches images to records in bulk from one Excel workbook. A cell can hold a pasted picture, a file name inside a zip, a web address or a site file. The app maps the columns, previews the rows, imports in background batches and lets you retry only the rows that failed.
Smart Attachment Import puts product photos on the right ERPNext records in one step. Give it one Excel workbook, with a zip file if it names image files, check the mapping and preview, and the app attaches the images in background batches.
At a glance
- Built for: ERPNext v16, as a Frappe app
- Input: One .xlsx workbook, plus a .zip when the sheet names image files
- Image sources: Pictures pasted in cells, file names in the zip, web addresses and files already on the site
- Matching: Each row is matched to a record by the identifier you choose, such as Item Code
- Processing: Background worker, in batches of 200 rows by default
- Errors: Every image is its own row, with a failure report and retry for failed rows only
- File types: jpg, jpeg, png, gif and webp, with a size limit you set (10 MB in the demo)
- Safety: Runs only if you may write to the records; web downloads are off until enabled
Standard bulk images are two separate jobs
- Zip and upload: Pack every photo into a zip file and upload it to the File Manager.
- Second Data Import: Build a sheet with the exact file path for every row, then import again.
- One wrong name: A single file that is not found sends you back to fix the sheet and run it again.
With a few hundred items this is slow. With thousands it becomes a project of its own.
A cell can hold an image four ways
- Picture pasted in the cell: Taken out of the workbook.
- File name: Read from the companion zip file.
- Web address: Downloaded, if you turn downloads on.
- Site file: Reused from the site, not copied.
One workbook can mix all four.
Video walkthrough

Video chapters (16)
The process: upload, map, import, fix and retry
Four steps take a spreadsheet of product photos to images on the right ERPNext records.
1. Upload
Bulk Image Import
- Choose the target DocType, for example Item
- Choose which field the identifier column matches, for example Item Code
- Attach the .xlsx workbook, and a .zip if it names image files
- Click Read Workbook
In the demo workbook, 8 rows have a picture pasted into the cell, 16 rows name a file in the zip and 5 rows add a second, gallery image.

2. Map
Column mapping
- The app reads the sheet and suggests a role for each column
- Document Identifier finds the record; Image columns set a field or are attached only
- Check the preview of every row before anything is written
In the demo, Item Code became the document identifier, Product Photo set the Item image and Gallery Photos were attached only.

3. Import
Attachment Import Job
- Each image is staged as its own import row
- A background worker on the long queue attaches them in batches
- Each batch is saved before the next starts, and the job shows live progress
The demo job found 29 images, attached 28 and reported 1 failure, in about 2 seconds.

4. Fix and retry
Failure report
- Show Failures names the row, the identifier and the reason
- Download the failure report and correct only those rows
- Attach the corrected file and click Retry Failed Rows
In the demo one file was missing from the zip. After the archive was updated, only that row ran again and all 29 images were attached.

Features
- Four image sources: Pasted pictures, zip file names, web addresses and site files
- Auto mapping: The app reads the sheet and suggests each column role
- Preview first: See every row before anything is written
- Background batches: Saved batch by batch, with live progress
- Retry failed rows: Failure report, fix and run only those rows
- Safe by default: Your permissions apply and web downloads start off
Standard ERPNext import and Smart Attachment Import
| Standard ERPNext | With Smart Attachment Import | |
|---|---|---|
| Steps | Upload files first, then run a Data Import with file paths | One workbook, with a zip only if it names files |
| Pictures pasted into Excel | Not read by Data Import | Taken out of the workbook and attached |
| Checking | Errors appear after the import | Mapping and preview before anything is written |
| A wrong file name | Fix the sheet and import again | Download the failure report and retry only those rows |
| Large batches | One import run | Background batches with saved progress |
The catalogue, with photos
Images land on the records your team already uses.
- Image view: Every item in the group shows its photo.
- Main image: A mapped image column sets the Item image.
- Attachments: Gallery photos are attached to the same record.
- One row per image: Each image has its own status and target document.


Safe by default
The settings decide what can be imported and from where.
- Your permissions: An import starts only if you may write to the records, and files are created as you.
- Web downloads off: They stay off until someone enables them.
- Internal addresses refused: Addresses inside the server's own network are always refused.
- Real image check: File type, extension and size limits are checked.
- Duplicates: Choose what happens when a record already holds the same image.
- Private files: Attach as private so only users who may read the record can see the file.

What the demo shows
- 29Images from one workbookAttached in about 2 seconds
- 1Row retriedOnly what failed ran again
- 10,000Images per jobWhat the app is designed for
Figures from the sample data in the walkthrough video. Your timings depend on image sizes and your server.
How Savyant sets it up
- Review: Which records need images, where the files are today and how they are named.
- Install: Install the app and set limits, allowed sources and permissions.
- Trial: Import a sample workbook on staging and fix naming gaps.
- Go live: Run the full import and train whoever maintains the catalogue.
Who it is for
- Retail, distribution and e-commerce teams with large item catalogues
- Manufacturers adding drawings or product photos to items
- Teams moving to ERPNext with images in spreadsheets and folders
- Anyone who maintains item photos in bulk
Problems it removes
- Photos added to items one by one
- A second Data Import just for file paths
- One wrong file name stopping the work
- No clear list of which images failed and why
Smart Attachment Import: common questions
How do I bulk upload item images in ERPNext?
With Smart Attachment Import you put the item codes and images in one Excel workbook, add a zip file if the sheet names image files, check the mapping and preview, and start the import.
Can it read pictures pasted into Excel cells?
Yes. Pictures pasted into cells are taken out of the workbook and attached to the matching record. A cell can also hold a file name from the zip, a web address or a file already on the site.
What happens if some images fail?
Each image is its own import row. You can show the failures, download a failure report, correct those rows or the zip file, and retry only the failed rows.
Does it work for large catalogues?
Images are attached in the background in batches, and each batch is saved before the next. The app is designed for jobs of 10,000 images; actual speed depends on image sizes and your server.
Which file types are allowed?
jpg, jpeg, png, gif and webp by default. The allowed extensions and the maximum image size are settings you control.
Is downloading images from the web safe?
Web downloads are off until enabled, and addresses inside the server's own network are always refused.
Which version of ERPNext do I need?
The app is built for ERPNext v16.
Related
- All Savyant products
- ERPNext for trading and distribution
- ERP migration to ERPNext
- Barcode Generation for ERPNext
Updated 2 December 2026 by Savyant Systems, an ERPNext and Frappe implementation company based in India.
See it on your own data
Have a catalogue without photos, or a folder of images waiting to be uploaded? Tell us how your files are named, and we will show an import on your data.
