Displaying 20 results from an estimated 20000 matches similar to: "RMagic via Rails: "Corrupt JPEG data""
2006 Apr 10
0
RMagic via Rails: "Corrupt JPEG data"
Hello,
I''m having some trouble with opening files with ImageMagick, by way of
RMagick, from within Rails. When trying to open an existing image, I get
this error:
"Corrupt JPEG data: premature end of data segment: "
My code is pretty straightforward:
pic = Magick::Image.read(filename)
I can view the image in question through the browser, so I don''t think
2006 Apr 06
4
GraphicsMagick or ImageMagick and RMagic on OS X
Hi all,
I''ve been trying to install GraphicsMagick with RMagic. I''ve tried
ImageMagick with RMagic as well. I''ve tried the installations using Darwin
Ports, Gems and from source. Nothing seems to work properly.
My specs:
ruby --version
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.5.0]
rails --version
Rails 1.1.0
convert -version
Version: ImageMagick 6.1.8 04/05/06 Q16
2006 Apr 26
5
imagemagic / rmagic dmg for OSX?
Is there a pre-built disk image for rmagic on OSX (including image magic and
all the other pre-requisites)? I''ve seen that it comes on the Locomotive
image but I don''t want to replace my entire development environment.
Does anybody have a sense of how reliable it is on OSX? I''ve seen some
fairly negative comments when googling, but that''s not the best way to
2006 Mar 27
3
RMagick and thumbnails
I''ve based my code on the Agile example for uploading files, pages
362-365. I''ve successfully loaded the Picture object to the database,
but I come unstuck when trying to replicate this for a thumbnail version
of the original image:
thumbnail = Thumbnail.new
thumbnail.name = ''thumbnail_'' + @picture.name.to_s
2008 Oct 10
3
Rails does not see installed gem in production.
Everything works like a charm locally, but running in production
(Dreamhost shared with Passenger if it matters), "These gems that this
application depends on are missing \n -rmagick"
Rmagick is installed on dreamhost, but I have also copied the gem into
the vendor directory, so it''s not even found within it''s local files.
I''m using config.gem
2008 Sep 15
1
RMagick Image Rendering Problem
RMagick Image Rendering
I am fairly new to Ruby on Rails and I have been trying to upload images
and create thumbnails using the "Processing Uploaded Images" recipe from
the Rails Recipes book. The script uses RMagick to create thumbnails of
the uploaded images and saves both the uploaded images and the
thumbnails in the public/uploaded_images directory. However when I
upload an image,
2007 Feb 09
7
Upload image without rmagic
I need a way to upload an image and display it without using any of
the plugins that use rmagic. I have used the plugins (file_column,
fleximage) which both use rmagic and gave me problems (never got
fleximage to work)
Thanks in advance - K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Apr 23
2
file_column and Thumbnails
I see that the SVN version of the excellent file_column plug-in can create
thumbnails using the url_for_image_column helper.
This uses Rmagick to create the thumbnail... Quick question...
Let''s say the file is a TIFF image - can the helper create a JPG version of
the thumbnail for display in the browser?
Curious if the plug-in can handle that transform with some creative use of
the
2006 Jun 30
1
delay displaying rmagick resizing of uploaded images
Hi,
I am using rmagick to resize a copy of uploaded images and display the
copy as a thumbnail. Once the upload is processed it redirects the user
to a page that should display the thumbnail to the user. The problem is
that the rmagick resize function seems to keep going in the background
after handing the new images url (and control) back to rails, which then
happily renders the page with
2007 Mar 28
3
attachment_fu Not Resizing
Hello,
Recently attachment_fu stopped resizing images for me. I''m puzzled
because before today it was resizing them and I don''t know what''s
changed. Here''s my code:
class Product < ActiveRecord::Base
has_attachment :content_type => :image,
:storage => :file_system,
:max_size => 18.megabytes,
2006 Jun 30
3
gem Rmagick install problem on Linux
I get the following error when I try to install Rmagic (via gem) on
Linux. Do I need to install anyting before installing rmagic? This
worked seamlessly on windows. What the best way to install it on Linux.
I am on RedHat ES 3. /thanks
-thila
Attempting local installation of ''rmagick''
Local gem file not found: rmagick*.gem
Attempting remote installation of
2006 Jan 26
2
rmagick
Hello,
I cannot use rmagick on Instant Rails (pre 8). I''ve downoladed andinstalled it following all instructions (yes, I did ''postinstall.rb'').
require ''RMagick''
gives
No such file to load -- RMagick.
gem --list
prints out
RMagick-win32 (1.9.2) RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick
2007 May 05
0
acts_as_attachment - no thumbnails?
the full-size pics upload OK, but no thumbs or resizing. There are no
errors or exceptions that I can see, just not getting any thumbnails.
The DB column ''thumbnail'' is always NULL
rmagick-1.15.6 is freshly installed.
I have the :thumbnails stuff setup per
http://weblog.techno-weenie.net/articles/acts_as_attachment/thumbnailing
using a model like this:
class EventPic
2006 Apr 24
0
ImageMagick and EXIF Data
Hi there,
I''m writing a little application that parses an image file and extracts the
camera settings from the file (the EXIF data) and saves all the fields to
the database. The idea is that after awhile people will be able to search
based on camera make, model, lens settings, etc... and all the pictures that
meet those requirements will be displayed. The picture is stored on the file
2009 Apr 21
3
attachment_fu giving problem on production
Hello friends,
I have configured attachment_f. It''s working fine on Local(development)
system but giving problem on production. Basically on production the
attachment_fu is not able to generate thumbnail image it saving the original
size image. Below is the configuration.
has_attachment :content_type => :image,
:storage => :file_system,
:max_size
2007 Feb 13
4
PDF Thumbnail - RMagick
Hi,
I need to create a preview of a PDF upload to a CMS I''m building. Does
anyone know how to create a thumbnail of the first page of a PDF using
RMagick?
Any ideas welcome,
~ Mark
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2007 Apr 18
2
RMagick - CORE_RL_magick_.dll was not found
Hi,
I have installed RMagick following the steps on
http://rmagick.rubyforge.org/install-faq.html. I have XP.
I am getting the error CORE_RL_magick_.dll was not found. I even tried
restarting the machine. But no help.
Please Help.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2007 Feb 06
1
Attachment_fu ImageScience FreeImage thumbnail quality
I''ve tried migrating acts_as_attachment to attachment_fu (just to see
if I could replace RMagick with ImageScience+FreeImage), but the
quality of the thumbnails is just horrendous, blurred beyond
recognition (downscaling a 1280x1024 to a few considerably smaller
thumbnails).
Changing attachment_fu to use RMagick again and the thumbnails were
crispy sharp again.
I was wondering
2006 Apr 09
2
Substruct v0.6
I just put the finishing touches on Substruct v0.06. As always, you can
check out a demo over at http://substruct.subimage.com/
What''s new?
Version 0.6
---------------------------------------
Added:
- Tagging for products
- Maintenance of product tags
- Automatic image thumbnail / small size creation via RMagick
Updated:
- Better shopping cart experience with AJAX cart
2008 Apr 15
4
is there a way to outsource image uploads?
I''m trying to keep my rails app lean and mean and want to avoid (if
possible) dealing with image uploads, thumbnail generation, running
RMagick etc.
I was excited about Amazon letting you upload files directly from the
browser to your S3 bucket (http://doc.s3.amazonaws.com/proposals/
post.html) but I couldn''t figure out how to generate thumbnails - has
anyone figured this out?