jeljer te Wies
2010-Jul-04 08:45 UTC
ImageMagick, passenger, rails, attachement_fu doesn''t resize
Hi guys! So after a couple of months of development today I am finaly deploying! (WOOHOO great day). But i am stuck with a problem I can''t seem to fix: First of all in development all is working perfectly. In deployment on my server it isn''t though!. I use attachment_fu and i am able to upload pictures but the pictures are not resizing. There is nothing in the production log or in de apache error log. I am using ImageMagick with Mini_magick, Passenger and Attachement_fu. So I can upload (no problem) but for some reason the images don''t resize! like i told attachement fu to do. Also i read and Google my ass and found some thing about Apache export you need to add or something. But so far i don''t know what to do at this point! Thanxs in advance for any advise! -- Posted via http://www.ruby-forum.com/. -- 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.
jeljer te Wies
2010-Jul-04 08:47 UTC
Re: ImageMagick, passenger, rails, attachement_fu doesn''t resize
of course i meant: "I googled my ass of" not that i am googling my ass of course ;) -- Posted via http://www.ruby-forum.com/. -- 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.
Peter De Berdt
2010-Jul-04 09:20 UTC
Re: ImageMagick, passenger, rails, attachement_fu doesn''t resize
On 04 Jul 2010, at 10:45, jeljer te Wies wrote:> So after a couple of months of development today I am finaly > deploying! > (WOOHOO great day). > But i am stuck with a problem I can''t seem to fix: > > First of all in development all is working perfectly. > In deployment on my server it isn''t though!. I use attachment_fu and i > am able to upload > pictures but the pictures are not resizing. > > There is nothing in the production log or in de apache error log. > I am using ImageMagick with Mini_magick, Passenger and Attachement_fu. > So I can upload (no problem) but for some reason the images don''t > resize! like i told attachement fu to do. > > Also i read and Google my ass and found some thing about Apache export > you need to add or something. But so far i don''t know what to do at > this > point!The symptoms are those of attachment_fu not being able to run the ImageMagick "convert" command properly. Check the following on your deployment server: - ImageMagick working correctly from the command line (google for a command line example and use it on an image file) - ImageMagick command line utils being in the unix PATH ("which convert" on Linux/MacOS X should give you a valid path) - Appropriate permissions on the folders where attachment_fu does its thing Best regards Peter De Berdt -- 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.
jeljer te Wies
2010-Jul-04 09:31 UTC
Re: ImageMagick, passenger, rails, attachement_fu doesn''t resize
hey Peter, Thanxs for the reply! (Much appreciated! ) !.. so I google a command (i used convert) and first with root i did: - convert nl.png nl.gif (just choose a picture on my server) this worked then i did it with my git user (who is owner of all the files and directories): and this work also great, no problem at all. I know passenger has the right permissions because i deploy with capistrano and I set in my deploy file: run "chown -R git /mnt/app" (where the my app with all it''s releases is located) also ls -la confirms that git is the user in all directories. But i don''t understand what you are saying here.. "- ImageMagick command line utils being in the unix PATH ("which convert" on Linux/MacOS X should give you a valid path)" -- Posted via http://www.ruby-forum.com/. -- 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.
Peter De Berdt
2010-Jul-04 11:48 UTC
Re: Re: ImageMagick, passenger, rails, attachement_fu doesn''t resize
On 04 Jul 2010, at 11:31, jeljer te Wies wrote:> Thanxs for the reply! (Much appreciated! ) !.. > so I google a command (i used convert) and first with root i did: > - convert nl.png nl.gif (just choose a picture on my server) > this worked > then i did it with my git user (who is owner of all the files and > directories): > and this work also great, no problem at all. > > I know passenger has the right permissions because i deploy with > capistrano and I set in my deploy file: > run "chown -R git /mnt/app" (where the my app with all it''s releases > is > located) > also ls -la confirms that git is the user in all directories. > > > But i don''t understand what you are saying here.. > "- ImageMagick command line utils being in the unix PATH ("which > convert" on Linux/MacOS X should give you a valid path)"Apparently that''s ok too, since you wouldn''t be able to do "convert blahblahblah" unless convert is actually in the unix path. Out of ideas at the moment, if something springs to mind, I''ll let you know. Best regards Peter De Berdt -- 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.