Displaying 20 results from an estimated 60000 matches similar to: "Convert base64 encode string into image using paperclip"
2013 Sep 04
2
Speed up image processing of Paperclip in Acceptance Tests
Hi All,
I have a question here: How to Speed up image processing of Paperclip in
Acceptance Tests
When running capybara feature specs I can see lots of Slow factory notices
which are populated byfactory_girl. These Slow factory things heavy slow
down the feature specs, I think, even feature specs are intrinsic slow
specs. Then I had some inspect and found out most of the Slow factory was
2013 Apr 15
0
update image name paperclip s3
Hello,
How can I rename image name while updating/adding the image in s3 through
paperclip?
Thanks,
Avi
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to
2012 Aug 18
2
Paperclip images are not stored in my directory
It is my User.rb model,
My images are not stored in my assets directory..
has_attached_file :photo, :styles => { :small => "100x100#", :large =>
"500x500>", :thumb => "60x60>" },
:url => "/assets/users/:id/:style/:basename.:extension",
:path =>
2010 Mar 17
3
Associating a default paperclip image from a different model
Here''s some code, this is my NewsItem model as you can see...
class NewsItem < ActiveRecord::Base
belongs_to :country
has_attached_file :image, :styles => { :original => ''57x57'' },
:default_url => ''/images/football.png''
# has_attached_file :image,
# :styles => { :original => ''57x57'' },
2014 Feb 18
0
How to Test Multimodel Paperclip attachments?
I'm using Rspec and FactoryGirl to create specs for multimodel paperclip
attachments. From searching other questions, it seems like a single
image attachment is more common.
Car.rb
class Car < ActiveRecord::Base
has_many :uploads, dependent: :destroy
validates :uploads, presence: { message: 'You must upload at least
one image' }
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 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
2010 Jun 04
0
How to add multi image with paperclip dynamicly
i want add one or many image using paperclip but dynamicly
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 Nov 01
2
paperclip Image Versioning
Hello. I''m hoping to hear your recommendations on using paperclip for
images with versioning.
Anyone know of any elegant paper_clip image, versioning implementation
solutions?
Thank you
--
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
2012 Oct 17
1
generate 10 UUID records and save it it database in rails
I need to create certain number of UUId records(based on the selection
of drop down) and save it in the database. Now I am generating only one
unique id. Can this be done in the model in this way. Or do I need to
write a helper file for that??
def generate_unique_token=(value) self.secret =
Base64.encode64(UUIDTools::UUID.random_create)[0..8] end
In my controller...........
def create
2007 Mar 08
1
RubyRails ActiveRecord base64 encode/decode of binary data
Hi,
I have binary images stored in a table which I wish to encode/decode with
base64 before reading into html object:
<object data="data:image/foo;base64, ..base64 data.." />.
How can I do this in RubyRails?
--
Regards
Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all,
I am using paperclip plugin. when i am trying to upload photo i am
getting this error " Photo Paperclip::CommandNotFoundError "
and i am getting this error on my server production mode. if i run on
development mode on my server i can able to upload the pic. why this is
happening i have no idea.
can any help me out.
Cheers,
Kp
--
You received this message because
2011 Sep 17
1
[PATCH 0/1] Base64-encode non-printable data
I expect this patch to require a second version. I mainly wanted to
spur discussion:
* I firmly believe hivexml needs more encoding checks before printing.
Base64 encoding made the most sense as hivexml already uses it
elsewhere. Is this the right direction to go, to escape non-printable
data?
* Should there be an enumeration for encoding decisions? I'm returning
strings because it felt a
2011 Jan 03
2
Adding style to model (paperclip)
hello,
I have a model (item) with one attachment (photo) and one style (small):
class Producto < ActiveRecord::Base
has_attached_file :photo, :styles => { :small => "50x50"},
end
I would like to add a new style (:large), so I modify item.rb:
class Producto < ActiveRecord::Base
has_attached_file :photo, :styles => {{ :small => "50x50"},{ :large =>
2010 Aug 06
4
Paperclip not finding imagemagick on prod, works on dev
Hi,
I am using paperclip to attach documents to my models. it works
perfectly on my dev machine, but on the server I get a
CommandNotFoundError.
On my server if I ./script/console I can run imagemagick through
system("convert") and it works, so why can''t paperclip find it?
Thanks for your ideas
PS: the paperclip google group isn''t getting much answers so I am
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
2010 Feb 17
1
Paperclip and viewing images
I have two objects Task and Asset and I want to view image in show task.
Here is my to models
Task.rb
has_many Assets :as => :attachable
And
Asset.rb
has_attached_file :photo, :styles => { :large => "371*251>", :small =>
"72*72>"},
:url => "/assets/:id/",
:path =>
2010 Aug 08
2
paperclip save to disk and s3
I have a standard Paperclip setup that saves a file to my disk. In
addition I would also like the file saved to my amazon s3 bucket.
[code]
after_save :copy_to_s3
def copy_to_s3
has_attached_file :photo,
:storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/s3.yml",
:styles => {
:thumb => "100x100#",
:small => "750x750>"
2014 Apr 28
0
upload multiple images with paperclip in rails 4?
Hello, I'm learning rails and creating a small project,
Someone could tell me how can I upload multiple images with paperclip in
rails 4?
Thank you very much, I hope someone can help me.
Greetings.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an
2008 Mar 10
0
PROP_TYPE_BINARY or base64 encode to PROP_TYPE_STRING
I never got an answer to this last time and I really need to know the
answer to this. I have PROP_TYPE_BINARY implemented but I think it is
causing some issues elsewhere (it might be incomplete).
-- original question asked 2008-01-16 --
For storing the wrapped per dataset encryption keys as a (hidden)
property I have been using PROP_TYPE_STRING. However this isn''t really
correct