I have an image that is black text with some gray and pale yellowish background. I basically want to keep the text as black as possible, and make the gray and yellow comparatively lighter...at the very least, turn yellow into a light gray. What's the most efficient way to do that in ImageMagick?
...
I have installed RMagick on OSX via MacPorts and can see it by running 'gem server'. However when I try to include it in my script using
require 'rubygems'
require 'RMagick'
It crashes with the following error message
./RMagick.rb:4:in `show_info': uninitialized constant Magick (NameError)
from ./RMagick.rb:24
from /System...
Need a simple a way of rounding off an Image. I need the corners to be transparent. This link shows how to do it via command line:
http://www.imagemagick.org/Usage/thumbnails/#rounded
What I need is the corresponding RMagick\Ruby code... Thanks!
...
I have a table that is 26 squares by 26 squares. Each square is going to be 30px * 30px.
Given the tiles
upper_left.png
upper_right.png
upper_wall.png
and:
left_wall.png
right_wall.png
and:
bottom_left.png
bottom_wall.png
bottom_right.png
I aim to comprise a background that is 780px*780px.
For the sake of speed and to preven...
I've been banging my head against the wall for the better part of an hour trying to figure out what's going wrong here, and I'm sure (or rather hoping) it's something fairly obvious that I'm overlooking. I'm using Ruby 1.9.1, Sinatra 1.0, and RMagick 2.13.1. ImageMagick and RMagick are correctly installed and functional—I've successfully...
I am getting following error while running local script/server of my rails project
/usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.so: This installation of RMagick was configured with ImageMagick 6.6.1 but ImageMagick 6.4.5 is in use. (RuntimeError)
and RMagick2.so is blank.
and identify --version command shows following result ...
I'm developing an app that does a fair amount of generating transparent pngs on the fly. These are used as overlays, to show areas of interest in a graphic, so they have to have transparent backgrounds.
I am developing in Ruby on Rails, deploying on Heroku. What works fine in development is not working in production. I get this error w...
I am running a rails app on BitNami rubystack, and try to upload picture using file_column i get this error, check below:
LoadError (998: Invalid access to memory location. - C:/Program Files (x86)/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rmagick-2.9.0-x86-mswin32/
ext/RMagick2.so):
C:/Program Files (x86)/BitNami RubyStack/ruby...
After finally getting RMagick installed on my Mac I have set up attachment_fu according to the tutorial here: http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu&gt when I try and upload a file via the upload form I get around 80 messages like these:
/Library/Ruby/Gems/1.8/gems/rmagick-2.13.1/lib/RMagick.rb:44: warning: already...
I'm using Dragonfly to generate thumbnail images in a Rails app.
I'm serving all picture images as JPG's. Now the client is uploading transparent PNG files, like this one:
http://www.ibanez.co.jp/products/images/eg2010/ART120_TRF_12_02.png
Dragonfly uses RMagick to convert these images to JPG. The problem is that it converts the PNG ...
Want to use RMagick to create a PNG image of a gradient that goes from rgba(0,0,0,0.3) to rgba(0,0,0,0.7). Is this possible?
...
I have 2 images, logo and background, logo is a small image that I place in the centre of background. To make the image look better im trying to make it so that it picks up the colour at the edge of logo and sets it at as the background colour of background.
Ive got everything working bar the colour finder. I can't find anything that lo...
I'd like to take a pdf and convert it to images...each pdf page becoming a separate image.
There's a similar post here: http://stackoverflow.com/questions/65250/convert-a-doc-or-pdf-to-an-image-and-display-a-thumbnail-in-ruby
But it doesn't cover how to make separate images for each page.
...
I've been using paperclip to upload and auto-resize photos in my Rails app, and I love it. Only problem is about every other month my crazy manager decides he wants a new size to display the photos in. So I add a new style in my Photo model and all is good for new photos, but the pre-existing photos are now a problem. Now that I'm starti...
I have a Rails app that processes and serves up jpg files that were uploaded via FTP. On several occasions the FTP process was disconnected and left many incomplete .jpg files. I was surprised to see that the incomplete jpgs behave as normal jpg files in my app even tho they have incomplete image data.
I have since implemented a more ...
I'm modifying an existing Rails application that works fine on OS/X, but I'm using windows. The issue is that the resized images that dragonfly is generating don't work.
The error I'm getting is:
RuntimeError: ImageMagick library function failed to return a result.
ImageMagick is installed and properly pathed and the .dlls seem to be...
i'm cropping images with paperclip.
i have a custom module which works great on my local machine (copied from railscast 182).
//file: lib/paperclip_processors/cropper.rb
module Paperclip
class Cropper < Thumbnail
def transformation_command
if crop_command
crop_command + super.sub(/ -crop \S+/, '')
else
...
system(' convert -size 320x100 xc:lightblue -font Courier -pointsize 72 \
-fill navy -annotate +25+65 \'Ernakulam1\' \
-virtual-pixel transparent -distort arc 120 \
-bordercolor lightblue font_arcnew.jpg');
This coe is not working
Example arc the text
mainly this code is not working
-virtual-pixel tran...
I have problems installing RMagick on top of Windows. I did as I should according to the instructions:
Downloaded the archive: RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip from here and unzipped to a local folder.
Installed ImageMagick-6.5.6-8-Q8-windows-dll.exe
gem install rmagick-2.12.0-x86-mswin32.gem --local
Even a reboot
Then I fol...
Hello, SO!
I'm messing around with rails and hope to try some different image manipulation techniques. My main goal is to learn more about different image formats and the various ways to interact with them.
The first thing I'm attempting to do is split the frames in a GIF image and randomly reorder them into a new image. I've researche...