subimage interactive
2006-Aug-12 09:00 UTC
[Rails] Rmagick not handling GIF files properly...
Tracked down the source of my problem... It seems that Rmagick isn''t properly cropping/resizing GIF or PNG images when uploaded via file_column. I can upload JPG files just fine. Originally I had installed ImageMagick via Debian''s apt-get and built the rmagick gem using "gem install rmagick". This wasn''t working so I uninstalled ImageMagick and tried to compile GraphicsMagick by hand, then reinstall the rmagick gem. This also isn''t working, and it''s driving me nuts. The same code works perfectly on my OS X dev machine. Does anyone have pointers to get this working properly? Please help! Thanks... -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060812/45b2e41f/attachment.html
have you got the libgif / libpng headers installed? subimage interactive wrote:> Tracked down the source of my problem... > > It seems that Rmagick isn''t properly cropping/resizing GIF or PNG > images when uploaded via file_column. I can upload JPG files just fine. > > Originally I had installed ImageMagick via Debian''s apt-get and built > the rmagick gem using "gem install rmagick". This wasn''t working so I > uninstalled ImageMagick and tried to compile GraphicsMagick by hand, > then reinstall the rmagick gem. > > This also isn''t working, and it''s driving me nuts. The same code works > perfectly on my OS X dev machine. > > Does anyone have pointers to get this working properly? Please help! > Thanks... > > -- > seth at subimage interactive > http://www.subimage.com/sublog/ > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
subimage interactive
2006-Aug-12 16:27 UTC
[Rails] Rmagick not handling GIF files properly...
I think I do - but how do I make sure? On 8/12/06, Inge J?rgensen <inge@manualdesign.no> wrote:> > have you got the libgif / libpng headers installed? > > subimage interactive wrote: > > Tracked down the source of my problem... > > > > It seems that Rmagick isn''t properly cropping/resizing GIF or PNG > > images when uploaded via file_column. I can upload JPG files just fine. > > > > Originally I had installed ImageMagick via Debian''s apt-get and built > > the rmagick gem using "gem install rmagick". This wasn''t working so I > > uninstalled ImageMagick and tried to compile GraphicsMagick by hand, > > then reinstall the rmagick gem. > > > > This also isn''t working, and it''s driving me nuts. The same code works > > perfectly on my OS X dev machine. > > > > Does anyone have pointers to get this working properly? Please help! > > Thanks... > > > > -- > > seth at subimage interactive > > http://www.subimage.com/sublog/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060812/46b65a79/attachment.html
subimage interactive
2006-Aug-12 16:27 UTC
[Rails] Re: Rmagick not handling GIF files properly...
Sorry about that - for awhile it was cropping the bottom 1/2 off one of my image versions (medium) and creating the other 2 versions (small and thumb) as 0kb. After compiling GraphicsMagick it makes all of the other versions 0kb. The original is fine... On 8/12/06, Timothy Hunter <cyclists@nc.rr.com> wrote:> > What do you mean by "isn''t properly cropping/resizing"? Do you get an > exception? An error message? Incorrect output? > > > On Aug 12, 2006, at 4:59 AM, subimage interactive wrote: > > Tracked down the source of my problem... > > It seems that Rmagick isn''t properly cropping/resizing GIF or PNG images > when uploaded via file_column. I can upload JPG files just fine. > > Originally I had installed ImageMagick via Debian''s apt-get and built the > rmagick gem using "gem install rmagick". This wasn''t working so I > uninstalled ImageMagick and tried to compile GraphicsMagick by hand, then > reinstall the rmagick gem. > > This also isn''t working, and it''s driving me nuts. The same code works > perfectly on my OS X dev machine. > > Does anyone have pointers to get this working properly? Please help! > Thanks... > > -- > seth at subimage interactive > http://www.subimage.com/sublog/ > > >-- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060812/826d0612/attachment-0001.html
subimage interactive
2006-Aug-12 17:05 UTC
[Rails] Rmagick not handling GIF files properly...
One other thing that might be helpful: I''m trying to build RMagick from source now, and after running: ./configure --with-graphics-magick make I''m getting this...error over and over again (with different rb scripts) /home/seth/src/RMagick-1.13.0/./lib/rvg/misc.rb:317:in `get_type_metrics'': Postscript delegate failed (Magick::ImageMagickError) from /home/seth/src/RMagick-1.13.0/./lib/rvg/misc.rb:317:in `render'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/misc.rb:688:in `text'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/text.rb:64:in `add_primitives'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in `add_primitives'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in `each'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in `add_primitives'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in `add_outermost_primitives'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in `each'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in `add_outermost_primitives'' from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:235:in `draw'' from InitialCoords.rb:22 On 8/12/06, subimage interactive <subimage@gmail.com> wrote:> > I think I do - but how do I make sure? > > > On 8/12/06, Inge J?rgensen <inge@manualdesign.no> wrote: > > > > have you got the libgif / libpng headers installed? > > > > subimage interactive wrote: > > > Tracked down the source of my problem... > > > > > > It seems that Rmagick isn''t properly cropping/resizing GIF or PNG > > > images when uploaded via file_column. I can upload JPG files just > > fine. > > > > > > Originally I had installed ImageMagick via Debian''s apt-get and built > > > the rmagick gem using "gem install rmagick". This wasn''t working so I > > > uninstalled ImageMagick and tried to compile GraphicsMagick by hand, > > > then reinstall the rmagick gem. > > > > > > This also isn''t working, and it''s driving me nuts. The same code works > > > perfectly on my OS X dev machine. > > > > > > Does anyone have pointers to get this working properly? Please help! > > > Thanks... > > > > > > -- > > > seth at subimage interactive > > > http://www.subimage.com/sublog/ > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > seth at subimage interactive > http://www.subimage.com/sublog/ >-- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060812/e4dba081/attachment.html
subimage interactive
2006-Aug-12 23:10 UTC
[Rails] Rmagick not handling GIF files properly...
For anyone who cares, got RMagick installed after installing ghostscript - but when I try to upload an image now I get an Application Error page with nothing in the apache or rails error log. I''m going nuts here! Has anyone built RMagick on a debian box FROM SCRATCH / SOURCE and have it fully working? Please help!!! On 8/12/06, subimage interactive <subimage@gmail.com> wrote:> > One other thing that might be helpful: > > I''m trying to build RMagick from source now, and after running: > > ./configure --with-graphics-magick > make > > I''m getting this...error over and over again (with different rb scripts) > > /home/seth/src/RMagick-1.13.0/./lib/rvg/misc.rb:317:in `get_type_metrics'': > Postscript delegate failed (Magick::ImageMagickError) > from /home/seth/src/RMagick-1.13.0/./lib/rvg/misc.rb:317:in > `render'' > from /home/seth/src/RMagick- 1.13.0/./lib/rvg/misc.rb:688:in > `text'' > from /home/seth/src/RMagick-1.13.0/./lib/rvg/text.rb:64:in > `add_primitives'' > from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in > `add_primitives'' > from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in > `each'' > from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in > `add_primitives'' > from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in > `add_outermost_primitives'' > from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in `each'' > from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in > `add_outermost_primitives'' > from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:235:in `draw'' > from InitialCoords.rb:22 > > > On 8/12/06, subimage interactive <subimage@gmail.com> wrote: > > > > I think I do - but how do I make sure? > > > > > > On 8/12/06, Inge J?rgensen < inge@manualdesign.no> wrote: > > > > > > have you got the libgif / libpng headers installed? > > > > > > subimage interactive wrote: > > > > Tracked down the source of my problem... > > > > > > > > It seems that Rmagick isn''t properly cropping/resizing GIF or PNG > > > > images when uploaded via file_column. I can upload JPG files just > > > fine. > > > > > > > > Originally I had installed ImageMagick via Debian''s apt-get and > > > built > > > > the rmagick gem using "gem install rmagick". This wasn''t working so > > > I > > > > uninstalled ImageMagick and tried to compile GraphicsMagick by hand, > > > > then reinstall the rmagick gem. > > > > > > > > This also isn''t working, and it''s driving me nuts. The same code > > > works > > > > perfectly on my OS X dev machine. > > > > > > > > Does anyone have pointers to get this working properly? Please help! > > > > Thanks... > > > > > > > > -- > > > > seth at subimage interactive > > > > http://www.subimage.com/sublog/ > > > > > > > ------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > > > Rails mailing list > > > > Rails@lists.rubyonrails.org > > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > -- > > seth at subimage interactive > > http://www.subimage.com/sublog/ > > > > > > -- > > seth at subimage interactive > http://www.subimage.com/sublog/ >-- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060812/d37928bf/attachment-0001.html