Skip to content

Instantly share code, notes, and snippets.

@jamiefolsom
Created June 6, 2014 16:08
Show Gist options
  • Save jamiefolsom/4d636e5ccaa464a93a0b to your computer and use it in GitHub Desktop.
Save jamiefolsom/4d636e5ccaa464a93a0b to your computer and use it in GitHub Desktop.
Log from image migration rake task
============
19263
*******
Existing
Register: 19263
Register image: 40413
Register image filepath: M119_02_R115/M119_02_R115_310v.jpg
Requested orientation: verso
Register image rv flag: v
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: convert '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]' -auto-orient -resize "100x100" '/tmp/M119_02_R115_310v20140606-2-unztwu20140606-2-1qnbafm'
Command :: file -b --mime '/tmp/M119_02_R115_310v20140606-2-unztwu20140606-2-1qnbafm'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: convert '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]' -auto-orient -resize "200x200" '/tmp/M119_02_R115_310v20140606-2-unztwu20140606-2-z72a3s'
Command :: file -b --mime '/tmp/M119_02_R115_310v20140606-2-unztwu20140606-2-z72a3s'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]'
Command :: convert '/tmp/M119_02_R115_310v20140606-2-unztwu.jpg[0]' -auto-orient -resize "600x400" '/tmp/M119_02_R115_310v20140606-2-unztwu20140606-2-18afopl'
Command :: file -b --mime '/tmp/M119_02_R115_310v20140606-2-unztwu20140606-2-18afopl'
Register image: #<RegisterImage id: 40413, filepath: "M119_02_R115/M119_02_R115_310v.jpg", created_at: "2013-05-08 13:04:07", updated_at: "2014-01-10 15:22:58", user_id: nil, register_id: 19263, image_file_name: "M119_02_R115_310v.jpg", image_content_type: "image/jpeg", image_file_size: 395568, image_updated_at: "2014-06-06 16:07:16", orientation: "verso">
[paperclip] saving /register_images/images/000/040/413/original/M119_02_R115_310v.jpg
Couldn't save
*******
Existing
Register: 19263
Register image: 40412
Register image filepath: M119_02_R115/M119_02_R115_309r.jpg
Requested orientation: recto
Register image rv flag: r
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: convert '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]' -auto-orient -resize "100x100" '/tmp/M119_02_R115_309r20140606-2-53auch20140606-2-rfpyo4'
Command :: file -b --mime '/tmp/M119_02_R115_309r20140606-2-53auch20140606-2-rfpyo4'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: convert '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]' -auto-orient -resize "200x200" '/tmp/M119_02_R115_309r20140606-2-53auch20140606-2-1u6ni7j'
Command :: file -b --mime '/tmp/M119_02_R115_309r20140606-2-53auch20140606-2-1u6ni7j'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]'
Command :: convert '/tmp/M119_02_R115_309r20140606-2-53auch.jpg[0]' -auto-orient -resize "600x400" '/tmp/M119_02_R115_309r20140606-2-53auch20140606-2-1uybi75'
Command :: file -b --mime '/tmp/M119_02_R115_309r20140606-2-53auch20140606-2-1uybi75'
Register image: #<RegisterImage id: 40412, filepath: "M119_02_R115/M119_02_R115_309r.jpg", created_at: "2013-05-08 13:04:07", updated_at: "2014-01-10 15:22:58", user_id: nil, register_id: 19263, image_file_name: "M119_02_R115_309r.jpg", image_content_type: "image/jpeg", image_file_size: 413402, image_updated_at: "2014-06-06 16:07:19", orientation: "recto">
[paperclip] saving /register_images/images/000/040/412/original/M119_02_R115_309r.jpg
Couldn't save
++++++
New
Previous Register: 19263
Old register image: 40411
Requested orientation: left
Register image rv flag: v
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: convert '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]' -auto-orient -resize "100x100" '/tmp/M119_02_R115_308v20140606-2-dmizqf20140606-2-1ctko72'
Command :: file -b --mime '/tmp/M119_02_R115_308v20140606-2-dmizqf20140606-2-1ctko72'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: convert '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]' -auto-orient -resize "200x200" '/tmp/M119_02_R115_308v20140606-2-dmizqf20140606-2-1oejtyk'
Command :: file -b --mime '/tmp/M119_02_R115_308v20140606-2-dmizqf20140606-2-1oejtyk'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: identify -format %m '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]'
Command :: convert '/tmp/M119_02_R115_308v20140606-2-dmizqf.jpg[0]' -auto-orient -resize "600x400" '/tmp/M119_02_R115_308v20140606-2-dmizqf20140606-2-py6yn1'
Command :: file -b --mime '/tmp/M119_02_R115_308v20140606-2-dmizqf20140606-2-py6yn1'
New register image: #<RegisterImage id: nil, filepath: nil, created_at: nil, updated_at: nil, user_id: nil, register_id: 19263, image_file_name: "M119_02_R115_308v.jpg", image_content_type: "image/jpeg", image_file_size: 393911, image_updated_at: "2014-06-06 16:07:23", orientation: "left">
[paperclip] saving /register_images/images/000/087/589/original/M119_02_R115_308v.jpg
Couldn't save new image
============
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment