Skip to content

jimwhimpey/Blog-Image-Resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

A Very Simple Ruby Command Line Image Resizer

Takes a local image path and (optionally a title, optionally a class), creates a small version, creates a larger version, uploads them via FTP, returns HTML of the smaller image linking to the larger image, automatically copies it to your pasteboard.

Handles any image type ImageMagick will take. Smart enough to not resize images up if they're not big enough but that's where the smart ends. This is a little tool for me to fill a gap I see in the otherwise brilliant Octopress blogging software. I hope someone else can also find it useful in some capacity.

Usage

  1. Download this thing.
  2. Modify the config and rename it config.rb
  3. Run ruby resize.rb /path/to/image.png "optional title of image" "optional-class" (remember that you can drag and drop files onto the command line to paste in the path).
  4. Wait for the files to upload.
  5. Output HTML is now copied to your pasteboard.

Requirments

Caveats

  • Pasteboard copy only works on Mac OS
  • Very little error checking, hastily thrown together

About

Takes local image path, makes a thumbnail and a larger version, uploads them to a server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages