I need to create an image from the imagemagick/rmagick library, How should I do that?
as in php it was done like below with GD library.
<?php
header ("Content-type: image/png");
$handle = ImageCreate (130, 50) or die ("Cannot Create image");
$bg_color = ImageColorAllocate ($handle, 255, 0, 0);
ImagePng ($handle);
?>
In input, I have given image color, image co-ordinates of area tag like that..any idea?
You need
ImageMagickinstalled in your system andrmagickgem, then:Make sure, you have ImageMagick compiled with PNG support.
To send your image, you may do next thing:
Then you don’t need to save an image unless you want to cache it.
More information about usage you can find here