Jump to content


Ruby Script for Image Saving


  • Please log in to reply
11 replies to this topic

#1 hitesh.manchanda

hitesh.manchanda

    Forum Newbie

  • Members
  • 5 posts

Posted 13 January 2009 - 12:56 PM

I would like to know if there is any available ruby script for image saving as is available for php,asp.net and jsp based applications. I developed one of my own scripts by studying the available script but when i run the script to save the application the memory allocation fails.

For more insight into this i would like to mention that I am using Rmagick library for image conversion and saving and it seems it's not able to allocate memory properly. Can someone provide me help on this as i am into urgent need for such a script to finish off my project.
Rails Lover

#2 hitesh.manchanda

hitesh.manchanda

    Forum Newbie

  • Members
  • 5 posts

Posted 14 January 2009 - 11:31 PM

Hi Guys,

well in my last post i asked for a ruby script to convert the fusion charts into image file.I would like to share with you that I have myself developed one such script finally and its working well . It use rmagick and imagemagick to do the same.But still it has got some rendering issues in case of Column3D chart. If any one needs that script feel free to contact me.
Rails Lover

#3 srividya_sharma

srividya_sharma

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 943 posts

Posted 15 January 2009 - 01:12 AM

The upcoming release of FusionCharts may have a RoR script for generating image, using MiniMagick and ImageMagick.

Do you think MiniMagick is easier to install/use than RMagick?

regards,
Srividya Sharma

#4 srividya_sharma

srividya_sharma

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 943 posts

Posted 29 January 2009 - 02:05 AM

Can you tell me the O/S in which you have RMagick installed? I found it difficult to install on Windows. If possible, please give me guidelines on how to install RMagick on Windows.
regards,
Srividya Sharma

#5 hitesh.manchanda

hitesh.manchanda

    Forum Newbie

  • Members
  • 5 posts

Posted 27 January 2009 - 07:47 AM

Well I have used Rmagick and its pretty easy to use as I has its own functional wrappers for Image Magick library. As far as I know minimagick does not support image composition which was required in my case as I had to make a new image object out of fusion chart. So i think Rmagick is useful for that.
Rails Lover

#6 srividya_sharma

srividya_sharma

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 943 posts

Posted 09 February 2009 - 01:55 AM

Got RMagick working!

1. The delegates for ImageMaigck had to be installed.

2. Visual C++ 2008 had to be installed. In Windows XP SP2, I had VC++ 2005 only.

Thanks for the help.

regards,
Srividya Sharma

#7 hitesh.manchanda

hitesh.manchanda

    Forum Newbie

  • Members
  • 5 posts

Posted 02 February 2009 - 11:31 PM

In order to install RMagick you first need to install the IMAGE MAGICK in your system.Then u need to download the gem RMagick and follow the way the gems are installed locally.
Rails Lover

#8 jhulick

jhulick

    Forum Newbie

  • Members
  • 1 posts

Posted 01 July 2009 - 01:06 PM

Which delegates were needed? All of them? Also, does anyone know if RMagick 1 works completely with FusionCharts v3? We have an issue installing RMagick 2 on our RH Linux system.

#9 srividya_sharma

srividya_sharma

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 943 posts

Posted 01 July 2009 - 09:06 PM

Hi

I followed the instructions here: http://rmagick.rubyf...q.html#imprereq

Downloaded and installed the delegates as mentioned there.

Also as per http://www.imagemagi...ses.php#windows, ( at the bottom ) it says,

"If you have any problems, install the Visual C++ 2008 Redistributable Package (x86) or Visual C++ 2008 Redistributable Package (x64)." for windows.

These two steps helped me install RMagick successfully.

FusionCharts was tested with and works with RMagick 2.9.0. It uses basic features of RMagick, so it might work with previous versions also.

I would recommend you to install ImageMagick successfully, test with command line

convert logo: logo.gif

Once ImageMagick is installed and tested, proceed to install RMagick.

I am not sure if this link will help, please see http://www.imagemagi...nstallation.php

regards,
Srividya

regards,
Srividya Sharma

#10 vistauser

vistauser

    Forum Newbie

  • Members
  • 2 posts

Posted 17 August 2009 - 11:40 PM

Can give me a copy? email:billhu2009@gmail.com



Thanks.



"Hi Guys,

well in my last post i asked for a ruby script to convert the fusion charts into image file.I would like to share with you that I have myself developed one such script finally and its working well . It use rmagick and imagemagick to do the same.But still it has got some rendering issues in case of Column3D chart. If any one needs that script feel free to contact me.



Rails Lover"

#11 srividya_sharma

srividya_sharma

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 943 posts

Posted 18 August 2009 - 12:02 AM

Hi

The latest version of FusionCharts provides the complete ruby on rails framework for exporting the chart as image.

Please use that.

regards,
Srividya

regards,
Srividya Sharma

#12 Abhishek Patel

Abhishek Patel

    Forum Newbie

  • Members
  • 2 posts

Posted 28 September 2011 - 10:15 AM

Hi,

I looked in to the latest export code of sample Rails 3 application.
as you told before , this version may use minimagick or image magick instead of Rmagick, but unfortunately still the given example app uses Rmagick only.

I am using that code in one of my app, but a major problem is that Rmagick is leaking memory and hence hangs my server, it takes almost 99% memory in all cases.
i tried several ways to get around this, but no luck.

I would like to request you to provide some sample code of export using mini magick or Rmagick.
or at least provide me some guideline that how i can use minimagick to convert the stream i got from export to an image.

Hi

The latest version of FusionCharts provides the complete ruby on rails framework for exporting the chart as image.

Please use that.

regards,
Srividya