Giter Site home page Giter Site logo

framed-image-generator's Introduction

Framed image generator

Simple shell scripts to generate Etsy-ready artwork product images.

Framemagick

This uses imagemagick. Run it in a folder and it'll automatically convert any image it finds. Append the relevant code to the filename to control the frame template used:

  • [filename]-p = portrait 8x10
  • [filename]-l = landscape 8x10
  • [filename]-pa = portrait A4
  • [filename]-la = landscape A4
  • [filename]-s = square

Frame.sh

Uses Cloudinary. The script will iterate through batches of sequentially numbered images, generating framed and cropped versions of each.

Files will be output as JPEGs.

  1. Upload product images to Cloudinary
  2. Run script
  3. ...
  4. Profit

Usage

sh frame.sh [image shape] [start no] [stop no] [batch name] [output name]

For example:

sh frame.sh l 1 20 Buttterflies_8x10 Butterflies

Image shape

The script can generate frames for square, A4 and 8x10 images, portrait or landscape.

  • p = portrait 8x10
  • l = landscape 8x10
  • pa = portrait A4
  • la = landscape A4
  • s = square

Start and stop numbers

Specify the number of images to download in a batch. If there are 20 images and you want to download all of them, put 1 20. If you only want a few, specify the range within, e.g 5 15.

Batch name

Make sure images uploaded to Cloudinary follow the pattern [batch name]_[number], e.g. Butterflies_8x10_1, Butterflies_8x10_2 etc. Use batch name without the trailing underscore and number, e.g. Butterflies_8x10.

Output name

This is the saved filename for your images. This can be the same or different to the batch name. They will also be numbered sequentially.

framed-image-generator's People

Contributors

mattkevan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.