-
Notifications
You must be signed in to change notification settings - Fork 82
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
Thumbnail Generation Issue #3
Comments
Ever figure this one out? I'm seeing the same thing |
edk
added a commit
to edk/av
that referenced
this issue
Dec 31, 2014
The issue at ruby-av/paperclip-av-transcoder#3 is caused, at least on my system with Paperclip 4.2, by the format parameter of the form: ".FMT". This caused the case statement to not match any of the desired formats! It's likely that other paperclip version don't pass the dot before the format extension, but it seems likely that the behavior may differ depending on the version. This change looks for the end of the format string to match using a regex, and should now properly find the format, allowing thumbnails to be generated (as well as the proper switches for non image params)
Hi, I've made a couple of pull requests:
|
@edk both pull requests break test cases for the two gems. Please check Travis build status. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @owahab thanks for creating this gem.
I'm running into issues generating the thumbnail according to your example. I was wondering if you could give a little bit more details in the README on how to get it to work properly, including setups and such?
I thought I had to make sure my ffmpeg install had --with-openjpeg flagged, so I reinstalled it with that.
I also debugged through the commands and ffmpeg asked for me to add %03d to the jpg name. So my code is now
Which now it it generates an empty jpg.
Any thoughts on how I'm supposed to be installing, setting up the configs, etc to make it generate a thumbnail correctly?
The text was updated successfully, but these errors were encountered: