Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 4 - Not able to create image set #67

Closed
marklocklear opened this issue Sep 18, 2014 · 3 comments
Closed

Rails 4 - Not able to create image set #67

marklocklear opened this issue Sep 18, 2014 · 3 comments

Comments

@marklocklear
Copy link
Contributor

After pulling a fresh version of the repo (as of today) and setting up my dev environment, I am not able to 'create an image set'. I am able to click the 'Create an image set' link. I enter the path (local) to a group of images and then click 'next' and I get this error:

unable to open image `2013-03-14_19-07-37_165.jpg': @ error/blob.c/OpenBlob/2587
Extracted source (around line #108):

106
107
108
109
110
111

set default image data

orig = Magick::ImageList.new(sample_image.original_file)
self.original_width = orig.columns
self.original_height = orig.rows

Rails.root: /home/johnmlocklear/railsApps/fromthepage
Application Trace | Framework Trace | Full Trace

app/models/image_set.rb:108:in new' app/models/image_set.rb:108:inprocess_sample_image'
app/models/image_set.rb:62:in directory_setup' app/controllers/transform_controller.rb:337:inprocess_source_directory'
app/controllers/transform_controller.rb:87:in `directory_process'

Request

Parameters:

{"utf8"=>"✓",
"authenticity_token"=>"BNrCnS/aQ6H8IMBghfveM4MI2tEoBHqrrrEp9bujTQc=",
"directory"=>"/home/johnmlocklear/Pictures/art",
"commit"=>"Next"}

@benwbrum
Copy link
Owner

I've duplicated the problem in my development environment, so this isn't a configuration issue.

SQL (0.2ms) UPDATE image_sets SET path = '/home/benwbrum/dev/products/fromthepage/fromthepage/public/images/working/104', status_message = 'populate_titled_images loading image files into database' WHERE image_sets.id = 104
(3.9ms) COMMIT
TitledImage Load (0.8ms) SELECT titled_images.* FROM titled_images WHERE titled_images.image_set_id = 104 ORDER BY position
cp /home/benwbrum/dev/clients/delrio/originals/jpg/split/Pequeño_cancionero_BNE_09-000_left.jpg /home/benwbrum/dev/products/fromthepage/fromthepage/public/images/working/104
Completed 500 Internal Server Error in 630ms

Magick::ImageMagickError (unable to open image Pequeño_cancionero_BNE_09-000_left.jpg': @ error/blob.c/OpenBlob/2587): app/models/image_set.rb:108:innew'
app/models/image_set.rb:108:in process_sample_image' app/models/image_set.rb:62:indirectory_setup'
app/controllers/transform_controller.rb:337:in process_source_directory' app/controllers/transform_controller.rb:87:indirectory_process'

@marklocklear
Copy link
Contributor Author

Awesome! I'll check it out later this morning.

On Friday, September 19, 2014, Ben W. Brumfield notifications@github.com
wrote:

Closed #67 #67 via 92976d8
92976d8
.


Reply to this email directly or view it on GitHub
#67 (comment).

J. Mark Locklear
locklear.me
-Philippians 4:13

When I am working on a problem, I never think about beauty, but when I have
finished, if the solution is not beautiful, I know it is wrong.
-Buckminster Fuller

@marklocklear
Copy link
Contributor Author

Verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants