# Rmagick via parallels

**URL:** <https://www.ruby-forum.com/t/rmagick-via-parallels/130629>\
**Category:** Ruby\
**Created:** [March 1, 2008, 12:15am UTC](https://www.ruby-forum.com/t/rmagick-via-parallels/130629 "2008-03-01T00:15:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prichard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@prichard](https://www.ruby-forum.com/u/prichard)\
**Post date:** [March 1, 2008, 12:15am UTC](https://www.ruby-forum.com/t/rmagick-via-parallels/130629/1 "2008-03-01T00:15:57Z")

</div>

I have some code that Im sure used to work on Vista under parallels,  
but now only works on Vista on a PC hardware.

Im using Win32::Screenshot to capture the windows screen, and then  
using rmagick to save to a file

I now get this exception  
Insufficient image data in file `' :in`from\_blob’

the code looks like this

```
  width, height, bmp = Win32::Screenshot.desktop
    puts "image data height = #{height} width = #{width}"
    puts "bmp size is #{bmp.size}"
    img = Magick::Image.from_blob(bmp)[0]

```

I see this displayed

Taking screenshotimage data height = 984 width = 1595  
bmp size is 4708494

the gem versions are

rmagick (1.15.9)  
RMagick is an interface between the Ruby programming language and  
the ImageMagick and GraphicsMagick image processing libraries.  
win32screenshot (0.0.2)  
Capture Screenshots on Windows with Ruby

and are the same on win and win-parallels.  
can any one tell me what it means, and how to fix?

Thanks  
Paul

---

<div class="post-metadata">

**Author:** ![prichard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@prichard](https://www.ruby-forum.com/u/prichard)\
**Post date:** [April 9, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/rmagick-via-parallels/130629/2 "2008-04-09T12:40:46Z")

</div>

On Mar 1, 1:13 am, Paul R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> the code looks like this
> 
> Thanks  
> Paul

Hi!

I also have this problem. It seems that it occurs when the image is to  
big. When I reduced the window that I wanted to make a snapshot of it  
works. Please post here again if you find out how to handle bigger  
images.

/Malle
