Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Batch convert product images on a shopify site

Notifications You must be signed in to change notification settings

rennes-us/shopify-img-convert

Repository files navigation

shopify-img-convert

NOTE: Now that I see on the Shopify url filters page that Shopify can provide converted versions server-side this probably isn't needed.

A kludgy Python script to find all product images in a Shopify store that are PNGs and replace them with JPGs. Not terribly well tested, so use with caution.

This will authenticate using the information in shopify_img_convert.ini and then loop over every image for every product in the store, checking for PNGs (based on the content-type HTTP header from a HEAD request). If a PNG is found it is downloaded and converted to JPG, and a new image object is uploaded in the same position, in place of the original.

Requires:

About

Batch convert product images on a shopify site

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages