Displaying 20 results from an estimated 600 matches similar to: "Speed up image processing of Paperclip in Acceptance Tests"
2009 Jul 28
1
[PAPERCLIP] How to avoid image crop in paperclip styles
Hello All,
I am using rails paperclip plugin for image upload.
my image has different styles and the original image gets cropped
while processing styled image.
I dont want image to be cropped.
Is there any way ????????
Thanks,
Sandip R~
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Aug 13
1
Paperclip - could not find generator.
Hello there,
I installed plugin "paperclip" for working with images, but after
running a command
--
rails generate paperclip user avatar
I am getting error
--
Could not find generator paperclip.
If I will try run a command
--
bundle show paperclip
So I will get
--
/Library/Ruby/Gems/1.8/gems/paperclip-2.3.0
In Gemfile I have
--
gem "paperclip", "~> 2.3"
I
2008 Sep 17
1
Stubbing Paperclip calls to Amazon S3 (for Rspec)
Would anyone happen to know how to stub a call to S3 from Paperclip?
I''ve searched every where and no one seems to have posted anything about
this. I''ve done very little in the way of spec''ing dependencies on
external services, so any ideas on how to do this with Paperclip & S3
would be most appreciated. I''m happy with stubbing out Thinking Sphinx -
would
2010 Aug 22
0
Paperclip - possible to modify file and load file content as string?
Wanted to see if anyone knows of a way - or the preferred way - to do these
three tasks with Paperclip:
1) Access the content of an uploaded file before save. I did find that the
following works before save, but is there a clearer way to do this:
self.uploaded_file.queued_for_write[:original].open.read
2) Access the content of a file after save while my AR model instance is
still alive and/or
2012 Jan 25
0
Paperclip preserve files ?
Hi,
I am using paperclip to upload files. The problem I am facing is,
based on my object property I need to preserve my file. Means my object
should be deleted from db but the file need to be restored.
I am using the option :preserve_files => true.
If I keep the above option in model it will be access to all the
objects of the model. I need to restore only for limited objects.
2009 Aug 17
0
Paperclip: processor proc not firing
Hi
It''s extremely rare that I have to post something on the Rails list,
but this is one of those times that I''ve been completely stuck for
countless hours.
Environment: Rails 2.3.3
I''ve implemented a custom processor proc for video thumbnailing with
Paperclip (latest trunk version as git submodule, and yes, it''s
updated) using the instructions posted
2009 Oct 08
2
Variable sizes with paperclip
How can i create variable sizes with paperclip.
That the user can set the size he want and paperclip makes the picture.
I only can create fixed sizes.
--
Posted via http://www.ruby-forum.com/.
2011 Feb 15
0
Question on Paperclip paths/urls
Note that if I use the default Paperclip :path (i.e. not setting this
attribute and files going to public/system), everything is fine. This
question is to do with setting an alternative path.
I have a model using paperclip for a file with a custom path:
has_attached_file :tu_raw_bill_csv,
:path =>
2009 Jul 07
2
paperclip unit testing
Hi,
Rails 2.3.2, paperclip 2.2.9.2
How can I unit test my model that has a paperclip attachment?
I add to my model:
--- CODE START ---
has_attached_file :image, :default_url => ''''
attr_protected :image_file_name, :image_content_type, :image_image_size
--- CODE END ---
Than I type a UNIT test:
--- CODE START ---
foo=FooModel.new({:image =>
2010 May 13
0
Rails 3, Paperclip and checking out particular revisions
Hey, got a weird one. I''ve been playing with a couple of Rails 3 apps
and today I have broken both. Seemingly by updating my paperclip gem.
Gemfile
.....
gem ''paperclip'', :git => ''git://github.com/thoughtbot/paperclip.git'',
:branch => ''rails3''
It appears the latest version of paperclip or at least in the branch
has broken in
2010 Sep 01
0
PaperClip StorageMethodNotFound (Cannot found filesystem)
Hello ,
i have an issue with paperclip . when i a working on
windows its works fine when i Go on Fedora Or heroku It gives Error
PaperClip StorageMethodNotFound (Cannot found filesystem) :
.....................
.....................
.....................
.....................
is this works for me
2012 Jul 11
0
Paperclip duplicates uploaded images
Hi,
I''m using rails3 with paperclip to upload multiple images as in
http://www.emersonlackey.com/article/paperclip-with-rails-3
The problem is, every image is duplicated upon create/update, that is,
saved twice to the db (and afterwards displayed twice in the view as a
result)
In other pages, and even in the same page as well, I also have a single
upload file, which works fine.
As
2009 Oct 01
0
Paperclip + asset_host uploading to external URL
I would need to be able to upload images to an external URL
I know S3 is an option but there are better image hosts out there for my
requirements and one in particular I would like to make use of.
I''m thinking that I could use asset_host to determine the url and path
but I can''t seem to make Paperclip play nicely.
The image host I want to use is www.unlimitedwebhosting.co.uk
I
2009 Sep 26
0
Paperclip with external url and asset_host?
Hi,
I''m trying to get Paperclip to work with asset_host and have totally
failed to do so.
The idea is to use asset_host to specify the url that I want to use for
my image hosting (www.unlimitedwebhosting.co.uk) so that link helpers
will use the image host location instead of the local file system.
This works really well and in truth I''m totaly blown away by the power
and
2009 Apr 01
1
Paperclip - how to display images that were not uploaded?
I''m using Paperclip plugin to store images in my application.
In the database I have columns like: image_file_name,
image_content_type, image_file_size.
When I upload an image via form, everything works well. But when I put
filename directly into the database and place properly named image in
the place expected, the image doesn''t appear on the webpage. Even if I
just rename
2011 Nov 20
1
Image preview paperclip
Hey guys,
I was trying to create a preview image using paperclip. Is it possible?
If yes, sb knows where can I find some post about it??
If no, What gem can I use to create preview images?
Bruno Meira
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Nov 02
0
Can't use paperclip plugins
development env:
Ubuntu 9.04
ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
rails -v
Rails 3.0.0
gem -v
1.3.7
Here what I did:
rails new testpaperclip -d mysql
cd testpaperclip
rake db:create
rails g scaffold user name:string address:string
rake db:migrate
== CreateUsers: migrating
====================================================
-- create_table(:users)
->
2011 Jan 08
1
Paperclip custom Interpolation in url
Folks,
I have a simple model hierarchy (reduced to example as below)
class Post < ActiveRecord::Base
has_many :comments
end
class Comment < ActiveRecord::Base
belongs_to :post
has_attached_file :photo,
# :url => "/assets/class_cal/<original post
date>/:id/:style/:basename.:extension"
:url =>
2008 Sep 14
3
paperclip attachment destroy
Hi all
I''ve got a problem with the paperclip-plugin.
Is it posible that the attachment is not destroy if i call the
destroy-
method of a model?
Thank you for your help!
sigma
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2011 Mar 08
0
keep getting an error, "rescue in load_missing_constant': uninitialized constant Paperclip::Glue (NameError)"
hi, there
rails: 2.3.8
machine os: Ubuntu 10.04 Lucid
I''m having some problems with my rails installation in one of my new
development machines.
I have installed all the gems in my config/environment.rb file.
When I now run either script/console or script/server, I have the
error of " `rescue in load_missing_constant'': uninitialized constant
Paperclip::Glue