search for: paperclip_processors

Displaying 4 results from an estimated 4 matches for "paperclip_processors".

2010 Oct 01
20
Paperclip not executing FFMPEG properly
Im using a customs processor to run ffmpeg on a video to create a thumbnail. So far so good. Except when I do: cmd = "-i #{@file.path} -f flv -s 320x240 ~/Downloads/foobar/q.flv" success = Paperclip.run(''ffmpeg'', cmd) Console is reporting: ffmpeg ''-i /var/folders/uL/uL0bYOOZEZaJH5E+BmDJVE+++TI/-Tmp-/stream, 16824,1.mpeg -f flv -s 320x240
2011 Feb 23
0
Dynamically setting Paperclip processors with attachment instance data
I''m trying to dynamically set my Paperclip processors which are stored in my database, ideally I would want to access attachment.instance.paperclip_processor, but I can''t seem to do that. Any ideas? # class Post < ActiveRecord::Base has_attached_file :image, :path => ":rails_root/ public/:hash_path/:style/:basename.:extension", :processors => lambda {
2009 Apr 16
6
Using Paperclip::Processor and RMagick to sharpen my thumbnails
...he website. Everything works great, ingredients are sized down and proportioned correctly...the problem is that the resulting images are so blurry! So I''ve been doing some research and it looks like Paperclip::Processor may be the way to go. Here is what I have so far: *** RAILS_ROOT/lib/paperclip_processors/paperclip_sharpen_image.rb *** require ''RMagick'' module Paperclip class SharpenImage < Paperclip::Processor def initialize file, options = {} super @file = file @format = options[:format] @curr...
2012 Jul 07
18
Problem processing text file after uploading
I''ve got a web-app currently partially working. The user uploads a .txt, .docx or .doc file to the server. Currently the model handles those files, saves some metadata (the extention and orig filename) then saves the file to the hard drive. Next it converts the doc and docx files to plain text and saves the output to a txt file. My problem is I want to copy the plain text contents of