Sha256: 6eccfe1d89a5d8d37bf2f248ca3d37c54a0b963195267c366c8d102d58ed4014

Contents?: true

Size: 723 Bytes

Versions: 40

Compression:

Stored size: 723 Bytes

Contents

#!/bin/sh

cd "$(dirname "$0")"

convert -size 2x2 xc:black -fill '#f00' -draw 'point 0,1' -fill '#0f0' -draw 'point 1,0' -fill '#00f' -draw 'point 1,1' -scale 64x64 original.png

convert original.png             0.jpg
convert original.png             1.jpg
convert original.png -flop       2.jpg
convert original.png -rotate 180 3.jpg
convert original.png -flip       4.jpg
convert original.png -transpose  5.jpg
convert original.png -rotate 270 6.jpg
convert original.png -transverse 7.jpg
convert original.png -rotate 90  8.jpg

convert original.png original.jpg
rm original.png

exiv2 -M"add Exif.Photo.UserComment image_optim-spec" *.jpg
for i in {1..8}; do
  exiv2 -M"add Exif.Image.Orientation Short $i" $i.jpg
done

Version data entries

40 entries across 40 versions & 3 rubygems

Version Path
image_optim-0.31.4 spec/images/orient/generate
image_optim-0.31.3 spec/images/orient/generate
image_optim-0.31.2 spec/images/orient/generate
image_optim-0.31.1 spec/images/orient/generate
image_optim-0.31.0 spec/images/orient/generate
image_optim-0.30.0 spec/images/orient/generate
image_optim-0.29.0 spec/images/orient/generate
image_optim-0.28.0 spec/images/orient/generate
image_optim-0.27.1 spec/images/orient/generate
image_optim-0.27.0 spec/images/orient/generate
image_optim-0.26.5 spec/images/orient/generate
image_optim-0.26.4 spec/images/orient/generate
image_optim-0.26.3 spec/images/orient/generate
image_optim-0.26.2 spec/images/orient/generate
discourse_image_optim-0.26.2 spec/images/orient/generate
discourse_image_optim-0.26.1 spec/images/orient/generate
image_optim-0.26.1 spec/images/orient/generate
image_optim-0.26.0 spec/images/orient/generate
image_optim-0.25.0 spec/images/orient/generate
discourse_image_optim-0.24.5 spec/images/orient/generate