Hello everyone I''m new in Ror and I have a problem with image display. I''m using paperclip for uploading images in the public folder, but when I want to show the images I have to use rmagick. Rmagick depends on Imagemagick, and the owner of the project doesn want to install Imagemagick. so I can''t use "<%= image_tag image.upload.url(:small) %>" because that''s rmagic syntax. Is there a way to display images without using rmagick syntax? Thanks for your help -- 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Jul 18, 2011 at 10:44 AM, Angelo Cordova <acordinz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m using paperclip for uploading images in the public folder, but > when I want to show the images I have to use rmagick.No you don''t. The whole purpose of rmagick/ImageMagick in the context of uploading is to enable resizing of too-large images, the creation of thumbnails, etc.> Is there a way to display images without using rmagick syntax?Have you looked at the API doc for image_tag ? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks for your answer I''ve just realize that rmagick is just for resizing, and the syntax to view images is "<%= image_tag image.upload.url %>" On Jul 18, 6:04 pm, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Jul 18, 2011 at 10:44 AM, Angelo Cordova <acord...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I''m using paperclip for uploading images in the public folder, but > > when I want to show the images I have to use rmagick. > > No you don''t. The whole purpose of rmagick/ImageMagick in the > context of uploading is to enable resizing of too-large images, the > creation of thumbnails, etc. > > > Is there a way to display images without using rmagick syntax? > > Have you looked at the API doc for image_tag ? > > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe80Tx58lXaADg@public.gmane.org://about.me/hassanschroeder > twitter: @hassan-- 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 rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.