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

Clipped doesn't seem to be generating thumbnails on upload #68

Open
DaveahamLincoln opened this issue Dec 17, 2013 · 4 comments
Open

Clipped doesn't seem to be generating thumbnails on upload #68

DaveahamLincoln opened this issue Dec 17, 2013 · 4 comments

Comments

@DaveahamLincoln
Copy link

When I upload a picture and insert using the insert button on the asset thumbnail (which is blank for some reason), it generates the tag

<r:asset:image size="normal" id="1" />

as expected. However, when I go to the page, I get an error:

AssetTags::TagError in Admin/pagesController#preview
asset Professor A has no 'normal' thumbnail

Full trace here: http://pastebin.com/rd8B00Fv

I've already tried installing the ImageMagick dev libraries and putting

Paperclip.options[:command_path => '/usr/bin/mogrify' ]

in my radiant_config.rb and my clipped_config.rb (alternately, not concurrently), since I use Passenger, but the issue persists. Any ideas?

Thanks,

-Dave Nearing

@saturnflyer
Copy link
Member

Hmm. That stack trace doesn't reveal much.

What sizes of images are being created? Can you look in your file system (wherever that is) and see what files you have?

@DaveahamLincoln
Copy link
Author

I've got the two images uploaded and sized to 256x256, located at

/public/system/assets/1/original/professor1.png 

and

/public/system/assets/2/original/professor2.png 

It doesn't seem to be generating any other sizes at all for some reason.

@saturnflyer
Copy link
Member

That's what I figured.

This means that there's something wrong on your system and that we should fail more gracefully in that event. I don't have time at the moment to look, but I'll try to track down the error.

In the meantime, can you try to check things in a console.
What values do you have for Asset.thumbnail_sizes?
Maybe that can help us track it down.

@DaveahamLincoln
Copy link
Author

Rails console

>> Asset.thumbnail_sizes
=> {}

Checking Asset.all returns a list containing the assets I've uploaded. Should I maybe try adding some thumbnail sizes to Asset.thumbnail_sizes and see if that works?

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