Coder Social home page Coder Social logo

rmagick / rmagick Goto Github PK

View Code? Open in Web Editor NEW
694.0 18.0 140.0 12.7 MB

Ruby bindings for ImageMagick

Home Page: https://rmagick.github.io/

License: MIT License

Ruby 35.62% Shell 0.36% C 3.55% Gnuplot 0.03% Dockerfile 0.01% C++ 60.43%
rmagick imagemagick ruby

rmagick's Introduction

RMagick

GemVersion CI

Table of Contents

Introduction

RMagick is an interface between the Ruby programming language and the ImageMagick image processing library.

Prerequisites

These prerequisites are required for the latest version of RMagick.

OS

  • Linux
  • *BSD
  • macOS
  • Windows
  • Other *nix-like systems

C++ compiler

  • RMagick 5.4.0 or later requires a C++ compiler.

Ruby

  • Version 3.0 or later.

You can get Ruby from https://www.ruby-lang.org.

Ruby must be able to build C-Extensions (e.g. MRI, Rubinius, not JRuby)

ImageMagick

  • Version 6.8.9 or later (6.x.x).
  • Version 7.0.8 or later (7.x.x). Require RMagick 4.1.0 or later.

You can get ImageMagick from https://imagemagick.org.

Linux

Ubuntu

On Ubuntu, you can run:

sudo apt-get install libmagickwand-dev

Centos

On Centos, you can run:

sudo yum install ImageMagick-devel

Arch Linux

On Arch Linux, you can run:

pacman -Syy imagemagick

Alpine Linux

On Alpine Linux, you can run:

apk add imagemagick imagemagick-dev imagemagick-libs

or you can run if you would like to use ImageMagick 6:

apk add imagemagick6 imagemagick6-dev imagemagick6-libs

macOS

On macOS, you can run:

brew install imagemagick

or you can run if you would like to use ImageMagick 6:

brew install imagemagick@6

Windows

  1. Install latest Ruby+Devkit package which you can get from RubyInstaller for Windows.
  2. You might need to configure PATH environment variable to where the compiler is located. (Ex: set PATH=C:\Ruby33-x64\bin;C:\Ruby33-x64\msys64\ucrt64\bin;%PATH%)
  3. Download ImageMagick-7.XXXX-Q16-x64-dll.exe (not, ImageMagick-7.XXXX-Q16-x64-static.exe) binary from Windows Binary Release, or you can download ImageMagick 6 from Windows Binary Release.
  4. Install ImageMagick. You need to turn on checkboxes Add application directory to your system path and Install development headers for C and C++ in an installer for RMagick.

Installing RMagick

Installing via Bundler

Add to your Gemfile:

gem 'rmagick'

Then run:

bundle install

Installing via RubyGems

Run:

gem install rmagick

Versioning

RMagick is versioned according to Semantic Versioning. For stable version compatible with Ruby 3.0+, use ~> 3.0. Versions >= 6 work on Ruby >= 3.x only.

Using RMagick

Require RMagick in your project as follows:

require 'rmagick'

See https://rmagick.github.io/usage.html for links to more information.

Things that can go wrong

The RMagick installation FAQ has answers to the most commonly reported problems, though may be out of date.

Can't install RMagick. Can't find libMagick or one of the dependent libraries. Check the mkmf.log file for more detailed information

Typically this message means that one or more of the libraries that ImageMagick depends on hasn't been installed. Examine the mkmf.log file in the ext/RMagick subdirectory of the installation directory for any error messages. These messages typically contain enough additional information for you to be able to diagnose the problem. Also see this FAQ.

Cannot open shared object file

If you get a message like this:

$DIR/RMagick.rb:11:in `require': libMagick.so.0:
  cannot open shared object file: No such file or directory -
  $DIR/RMagick2.so (LoadError)

you probably do not have the directory in which the ImageMagick library is installed in your load path. An easy way to fix this is to define the directory in the LD_LIBRARY_PATH environment variable. For example, suppose you installed the ImageMagick library libMagick.so in /usr/local/lib. (By default this is where it is installed.) Create the LD_LIBRARY_PATH variable like this:

export LD_LIBRARY_PATH=/usr/local/lib

On Linux, see ld(1) and ld.so(8) for more information. On other operating systems, see the documentation for the dynamic loading facility.

This operation might not be required when you can use 4.2.5 or later.

Segmentation fault

Default stack size of your operating system might be too small. Try removing the limit with this command:

ulimit -s unlimited

Upgrading

If you upgrade to a newer release of ImageMagick, make sure you're using a release of RMagick that supports that release. It's safe to install a new release of RMagick over an earlier release.

More samples

You can find more sample RMagick programs in the /examples directory. These programs are not installed in the RMagick documentation tree.

Reporting bugs

Please report bugs in RMagick, its documentation, or its installation programs via the bug tracker on the RMagick issues page.

However, We can't help with Ruby installation and configuration or ImageMagick installation and configuration. Information about reporting problems and getting help for ImageMagick is available at the ImageMagick website or the ImageMagick Forum.

Development Setup

In order to minimize issues on your local machine, we recommend that you make use of a Vagrant installation.

Steps to get up and running with a passing build are as follows:

1) set up the Vagrant environment

If you don't already have Vagrant installed, you can download and install it from here. Once installed, we can set up a pre-built environment:

git clone https://github.com/tjschuck/rake-compiler-dev-box.git
cd rake-compiler-dev-box
vagrant up

This last part will probably take a while as it has to download an Ubuntu image and configure it. If there is an error during this process, you may need to reboot your computer and enable virtualization in your BIOS settings.

2) clone RMagick and log in to the vagrant box

Within the rake-compiler-dev-box directory:

git clone https://github.com/rmagick/rmagick.git # or your fork
vagrant ssh

3) install ImageMagick and additional environment stuff

cd /vagrant/rmagick
export IMAGEMAGICK_VERSION=6.8.9-10
bash ./before_install_linux.sh

This will take just a few minutes to build ImageMagick

4) build RMagick

rake

This compiles the RMagick extensions and runs the tests. If all goes well you'll see a lot of output, eventually ending in something like:

Finished tests in 35.865734s, 11.3758 tests/s, 6560.3007 assertions/s.

408 tests, 235290 assertions, 0 failures, 0 errors, 0 skips

And you're all set! The copy of RMagick within /vagrant/rmagick inside your Vagrant session is the same as the one in the rake-compiler-dev-box directory on your machine. You can make changes locally and run tests within your ssh session.

Credits

Authors: Tim Hunter, Omer Bar-or, Benjamin Thomas

Thanks to ImageMagick Studio LLC for ImageMagick and for hosting the RMagick documentation.

License

MIT License

Releasing

See https://github.com/rmagick/rmagick/wiki/Release-Process

  1. Update ChangeLog
  2. Edit lib/rmagick/version.rb
  3. Are the tests passing? Run rake again just to be sure.
  4. rake release

rmagick's People

Contributors

akicho8 avatar bf4 avatar brysgo avatar dlemstra avatar funkyloverone avatar igel avatar ioquatix avatar joshk avatar kittysquee avatar le1gh avatar linduxed avatar marceloboeira avatar markotom avatar mdkent avatar mmaiza avatar mockdeep avatar mtasaka avatar naquad avatar nobodysnightmare avatar ollie avatar seliverstov-maxim avatar shockwavenn avatar sigmike avatar tatatakky avatar terceiro avatar theschoolmaster avatar u338steven avatar vassilevsky avatar watson1978 avatar xlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rmagick's Issues

Removed the SplineInterpolatePixel check

Issue by joshk
Tuesday Sep 07, 2010 at 19:35 GMT
Originally opened as #15


Hi Guys,

In a commit in June 2009 a check in the extension config was removed relating to SplineInterpolatePixel and InterpolatePixelMethod. I noticed, after a fair bit of hunting, that the check regarding this enum was not removed in the rmmain.c file, so in the end SplineInterpolatePixel is never made available.

Here is a small patch which removes the check and makes SplineInterpolatePixel available for all :)

Thanks for the great gem!

Josh


joshk included the following code: https://github.com/rmagick/rmagick/pull/15/commits

Resolution management

Issue by daniel2d2art
Saturday Feb 11, 2012 at 21:40 GMT
Originally opened as #46


Hi

I've next resource:

file: 300dpi.jpg
dimensions: 1782px x 1181px
size: 304539 bytes
resolution: 300dpi x 300dpi

when I use:

image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_1.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 300dpi x 300dpi
Result: Ok expected

Now I want to try reduce the resolution, I use:

image.density="72x72"
image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_2.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 72dpi x 72dpi
Result: resolutions seems change but size its the same at 300x300

No I try to reduze adding resample too, I use:

image.resample(72.0, 72.0)
image.density="72x72"
image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_3.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 72dpi x 72dpi
Result: resolutions seems the same 72x72 as above test, but size its the same at 300x300 too

???
How change resolutions works???, I don't get clareance about it on documentation, it's working ok?
How can I upload a image file (JPG, GIF, PNG) optional (TIFF, BMP), and transform they change resolution and resize?

Thanks

Cannot compile on Slackware 13.1; complains of 'partial' ImageMagick

Issue by anoother
Tuesday Jan 04, 2011 at 10:40 GMT
Originally opened as #21


Neither the gem, nor tarballs of 2.13.1 or 2.13.0 will compile:

 $ ruby setup.rb
  ---> lib
  ---> lib/rvg
  <--- lib/rvg
  <--- lib
  ---> ext
  ---> ext/RMagick
  /usr/bin/ruby /home/ahmad/setup/software/ebookproduction/rmagick/ RMagick-2.13.1/ext/RMagick/extconf.rb
  checking for Ruby version >= 1.8.5... *** /home/ahmad/setup/software/ebookproduction/rmagick/RMagick-2.13.1/ext/RMagick/extconf.rb failed ***
  Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.

  Provided configuration options:
      --with-opt-dir
      --without-opt-dir
      --with-opt-include
      --without-opt-include=${opt-dir}/include
      --with-opt-lib
      --without-opt-lib=${opt-dir}/lib
      --with-make-prog
      --without-make-prog
      --srcdir=/home/ahmad/setup/software/ebookproduction/rmagick/RMagick-2.13.1/ext/RMagick
      --curdir
      --ruby=/usr/bin/ruby
  /usr/lib/ruby/1.9.1/mkmf.rb:242:in `initialize': Permission denied - mkmf.log (Errno::EACCES)
      from /usr/lib/ruby/1.9.1/mkmf.rb:242:in `open'
      from /usr/lib/ruby/1.9.1/mkmf.rb:242:in `log_open'
      from /usr/lib/ruby/1.9.1/mkmf.rb:247:in `open'
      from /usr/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
      from /usr/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
      from /home/ahmad/setup/software/ebookproduction/rmagick/RMagick-2.13.1/ext/RMagick/extconf.rb:114:in `<main>'
  setup.rb:655:in `command': system("/usr/bin/ruby" "/home/ahmad/setup/software/ebookproduction/rmagick/RMagick-2.13.1/ext/RMagick/extconf.rb") failed (RuntimeError)
      from setup.rb:660:in `ruby'
      from setup.rb:1238:in `extconf'
      from setup.rb:1230:in `config_dir_ext'
      from setup.rb:1532:in `block in traverse'
      from setup.rb:1549:in `dive_into'
      from setup.rb:1530:in `traverse'
      from setup.rb:1534:in `block (2 levels) in traverse'
      from setup.rb:1533:in `each'
      from setup.rb:1533:in `block in traverse'
      from setup.rb:1549:in `dive_into'
      from setup.rb:1530:in `traverse'
      from setup.rb:1524:in `block in exec_task_traverse'
      from setup.rb:1519:in `each'
      from setup.rb:1519:in `exec_task_traverse'
      from setup.rb:1223:in `exec_config'
      from setup.rb:991:in `exec_config'
      from setup.rb:812:in `invoke'
      from setup.rb:772:in `invoke'
      from setup.rb:1578:in `<main>'

Slackware 13.1 uses Ruby 1.9.1 and ImageMagick 6.5.9

Please help!

RMagick thumbnail doesn't work like ImageMagick thumbnail

Issue by mattneub
Tuesday Aug 16, 2011 at 00:47 GMT
Originally opened as #33


In ImageMagick I can say:

 $ convert marcelle.jpg -thumbnail 300x1000 -quality 90  -unsharp 0x.5 marcelle_th.jpg

The -thumbnail 300x1000 part means: resize proportionally, and be smaller than or equal to width 300 and height 1000. In other words, 300x1000 represents a maximal bounding box.

But in RMagick, pic.thumbnail(300,1000) does not resize proportionally - instead, it makes an image whose size is exactly 300x1000.

Of course I can work around this by using GreaterGeometry and change_geometry, but my point is that having to do so makes thumbnail kind of useless. So I suggest that the lack of match between ImageMagick's thumbnail behaviour and RMagick's thumbnail behavior is a possible bug.

uninitialized constant Magick::Hatchfill (NameError)

Issue by jadiaz
Thursday Sep 30, 2010 at 22:52 GMT
Originally opened as #17


Having installed and verified ImageMagick I downloaded the latest gem for RMagick. I wanted to make sure that the RMagick installed correctly so I ran the following script:

require 'rubygems'
require 'rmagick'

canvas = Magick::Image.new(240, 300, Magick::Hatchfill.new('white', 'lightcyan2'))
gc = Magick::Draw.new

gc.fill('red')
gc.stroke('blue')
gc.stroke_width(2)
gc.path('M120, 150 h-75 a75, 75 0 1, 0 75, -75 z')
gc.fill('yellow')
gc.path('M108.5,138.5 v-75 a75,75 0 0,0 -75, 75 z')
gc.draw(canvas)

canvas.write('path.png')

No matter what I do (uninstall gem, install via tarball) I get the Hatchfill error.

RMagick 2.13.2 on Windows 7 x64

Issue by bodrovis
Monday Feb 04, 2013 at 11:24 GMT
Originally opened as #66


Hello. I just noticed that RMagick was updated to 2.13.2 and that it should support ImageMagick 6.8. So i uninstalled my old ImageMagick, downloaded a new one (6.8.2-3-Q16-x64-dll) and installed in with C/C++ headers. Then i tried to install RMagick using instructions found in the Wiki (it helped me to install rmagick 2.13.1), but got the following error:

======================================================================
Mon 04Feb13 15:18:18
This installation of RMagick 2.13.2 is configured for
Ruby 1.9.3 (i386-mingw32) and ImageMagick 6.8.2
======================================================================



make
generating RMagick2-i386-mingw32.def
compiling rmagick.c
In file included from P:\ImageMagick/include/magick/magick-config.h:25:0,
                 from P:\ImageMagick/include/magick/MagickCore.h:29,
                 from rmagick.h:47,
                 from rmagick.c:13:
P:\ImageMagick/include/magick/magick-baseconfig.h:181:14: error: conflicting types for 'ssize_t'
p:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/types.h:118:18: note: previous declaration of 'ssize_t' was here
rmagick.c: In function 'Magick_colors':
rmagick.c:42:5: warning: passing argument 2 of 'GetColorInfoList' from incompatible pointer type
P:\ImageMagick/include/magick/color.h:75:5: note: expected 'size_t *' but argument is of type 'long unsigned int *'
rmagick.c: In function 'Magick_fonts':
rmagick.c:90:5: warning: passing argument 2 of 'GetTypeInfoList' from incompatible pointer type
P:\ImageMagick/include/magick/type.h:98:5: note: expected 'size_t *' but argument is of type 'long unsigned int *'
rmagick.c: In function 'Magick_init_formats':
rmagick.c:178:5: warning: passing argument 2 of 'GetMagickInfoList' from incompatible pointer type
P:\ImageMagick/include/magick/magick.h:125:5: note: expected 'size_t *' but argument is of type 'long unsigned int *'
make: *** [rmagick.o] Error 1

Exactly the same error i got when trying to use ImageMagick x86. My Ruby version is 1.9.3-p374. I recall, that when trying to use ImageMagick 6.8 with older rmagick 2.13.1 i got the same (or near the same) error about conflicting types.

Any clues about this issue?

Segfault on install

Issue by jackkinsella
Saturday Oct 08, 2011 at 00:15 GMT
Originally opened as #34


Just installed RMagick on OSX 10.6 Ruby-1.9.2-p180 and came across this:

/Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rmagick-2.13.1/lib/rmagick.rb:1635: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]

-- control frame ----------
c:0080 p:---- s:0438 b:0438 l:000437 d:000437 CFUNC  :read
c:0079 p:0023 s:0434 b:0434 l:0013d8 d:001990 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rmagick-2.13.1/lib/rmagick.rb:1635
c:0078 p:---- s:0431 b:0431 l:000430 d:000430 FINISH
c:0077 p:---- s:0429 b:0429 l:000428 d:000428 CFUNC  :each
c:0076 p:0025 s:0426 b:0426 l:0013d8 d:0013d8 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rmagick-2.13.1/lib/rmagick.rb:1634
c:0075 p:---- s:0421 b:0421 l:000420 d:000420 FINISH
c:0074 p:---- s:0419 b:0419 l:000418 d:000418 CFUNC  :new
c:0073 p:0026 s:0415 b:0415 l:000414 d:000414 METHOD /Users/jack/Code/identified/analyse-me/app/models/infographic.rb:37
c:0072 p:0033 s:0412 b:0409 l:002270 d:001c50 BLOCK  /Users/jack/Code/identified/analyse-me/app/models/infographic.rb:27
c:0071 p:---- s:0406 b:0406 l:000405 d:000405 FINISH
c:0070 p:---- s:0404 b:0404 l:000403 d:000403 CFUNC  :map
c:0069 p:0068 s:0401 b:0401 l:002270 d:002270 METHOD /Users/jack/Code/identified/analyse-me/app/models/infographic.rb:26
c:0068 p:0111 s:0397 b:0397 l:000396 d:000396 METHOD /Users/jack/Code/identified/analyse-me/app/models/infographic.rb:19
c:0067 p:0043 s:0392 b:0392 l:000391 d:000391 METHOD /Users/jack/Code/identified/analyse-me/app/controllers/pages_controller.rb:12
c:0066 p:0014 s:0389 b:0389 l:000388 d:000388 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/implicit_render.rb:4
c:0065 p:0015 s:0383 b:0383 l:000382 d:000382 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/base.rb:167
c:0064 p:0041 s:0378 b:0378 l:001ec0 d:001ec0 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/rendering.rb:10
c:0063 p:0010 s:0374 b:0374 l:0016b0 d:000373 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb:18
c:0062 p:0132 s:0372 b:0372 l:000371 d:000371 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:434
c:0061 p:0113 s:0366 b:0366 l:000365 d:000365 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:386
c:0060 p:0024 s:0357 b:0357 l:000356 d:000356 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81
c:0059 p:0020 s:0351 b:0351 l:0016b0 d:0016b0 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb:17
c:0058 p:0012 s:0347 b:0347 l:000346 d:000346 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/rescue.rb:17
c:0057 p:0010 s:0342 b:0342 l:000323 d:000341 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:30
c:0056 p:0017 s:0338 b:0338 l:000328 d:000337 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53
c:0055 p:0032 s:0336 b:0336 l:000335 d:000335 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21
c:0054 p:0036 s:0329 b:0329 l:000328 d:000328 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53
c:0053 p:0152 s:0324 b:0324 l:000323 d:000323 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:29
c:0052 p:0143 s:0319 b:0319 l:000318 d:000318 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/params_wrapper.rb:201
c:0051 p:0032 s:0313 b:0313 l:000312 d:000312 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb:18
c:0050 p:0093 s:0308 b:0308 l:000307 d:000307 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/base.rb:121
c:0049 p:0084 s:0302 b:0302 l:000301 d:000301 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:45
c:0048 p:0048 s:0297 b:0297 l:000296 d:000296 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal.rb:193
c:0047 p:0086 s:0292 b:0292 l:000291 d:000291 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/rack_delegation.rb:14
c:0046 p:0030 s:0286 b:0286 l:000568 d:000285 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal.rb:236
c:0045 p:---- s:0283 b:0283 l:000282 d:000282 FINISH
c:0044 p:---- s:0281 b:0281 l:000280 d:000280 CFUNC  :call
c:0043 p:0022 s:0277 b:0277 l:000276 d:000276 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:65
c:0042 p:0094 s:0271 b:0271 l:000270 d:000270 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:29
c:0041 p:0127 s:0265 b:0265 l:0016f0 d:001780 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152
c:0040 p:0014 s:0258 b:0258 l:000242 d:000257 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96
c:0039 p:0266 s:0253 b:0253 l:000252 d:000252 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75
c:0038 p:0125 s:0243 b:0243 l:000242 d:000242 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95
c:0037 p:0092 s:0237 b:0237 l:0016f0 d:0016f0 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141
c:0036 p:0025 s:0231 b:0231 l:000230 d:000230 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:531
c:0035 p:0015 s:0227 b:0227 l:000226 d:000226 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/best_standards_support.rb
c:0034 p:0015 s:0220 b:0220 l:000219 d:000219 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/etag.rb:23
c:0033 p:0068 s:0212 b:0212 l:000211 d:000211 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/conditionalget.rb:25
c:0032 p:0093 s:0205 b:0205 l:000204 d:000204 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/head.rb:14
c:0031 p:0046 s:0198 b:0198 l:000197 d:000197 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/params_parser.rb:21
c:0030 p:0054 s:0193 b:0193 l:000192 d:000192 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/flash.rb:243
c:0029 p:0031 s:0185 b:0185 l:000184 d:000184 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/session/abstract/id.rb:195
c:0028 p:0013 s:0177 b:0177 l:000176 d:000176 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/session/abstract/id.rb:190
c:0027 p:0020 s:0173 b:0173 l:000172 d:000172 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/cookies.rb:326
c:0026 p:0064 s:0165 b:0165 l:000164 d:000164 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activerecord-3.1.0/lib/active_record/query_cache.rb:62
c:0025 p:0029 s:0156 b:0156 l:000155 d:000155 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connect
c:0024 p:0014 s:0148 b:0148 l:001c70 d:000147 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb:29
c:0023 p:0155 s:0146 b:0146 l:000145 d:000145 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:392
c:0022 p:0024 s:0136 b:0136 l:000135 d:000135 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81
c:0021 p:0013 s:0130 b:0130 l:001c70 d:001c70 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb:28
c:0020 p:0027 s:0126 b:0126 l:000125 d:000125 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/reloader.rb:68
c:0019 p:0015 s:0121 b:0121 l:000120 d:000120 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/sendfile.rb:101
c:0018 p:0049 s:0111 b:0111 l:000110 d:000110 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/remote_ip.rb:48
c:0017 p:0017 s:0107 b:0107 l:000106 d:000106 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/show_exceptions.rb:47
c:0016 p:0027 s:0099 b:0099 l:000098 d:000098 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/rack/logger.rb:13
c:0015 p:0155 s:0095 b:0095 l:000094 d:000094 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/methodoverride.rb:24
c:0014 p:0032 s:0089 b:0089 l:000088 d:000088 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/runtime.rb:17
c:0013 p:0057 s:0080 b:0080 l:000079 d:000079 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/cache/strategy/local_cache.rb:72
c:0012 p:0068 s:0076 b:0076 l:000075 d:000075 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/lock.rb:15
c:0011 p:0124 s:0070 b:0070 l:000069 d:000069 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/static.rb:53
c:0010 p:0032 s:0064 b:0064 l:000063 d:000063 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/engine.rb:455
c:0009 p:0015 s:0060 b:0060 l:000059 d:000059 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/rack/content_length.rb:16
c:0008 p:0015 s:0051 b:0051 l:000050 d:000050 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/rack/debugger.rb:21
c:0007 p:0015 s:0047 b:0047 l:000046 d:000046 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/rack/log_tailer.rb:14
c:0006 p:0356 s:0042 b:0042 l:0011c0 d:0011c0 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/handler/webrick.rb:59
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /Users/jack/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /Users/jack/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:000cc8 d:000008 BLOCK  /Users/jack/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP  

Rmagick + Rails 3

Issue by klebervirgilio
Thursday Oct 28, 2010 at 21:09 GMT
Originally opened as #19


Hi!

I'm trying to use rmagick as gem along Rails 3.0.0, but one problem has been a big stone in my way!!

So, when my Rails APP calls one module called FactoryImg, where I've used RMagick for 'read' a image from filesystem one error is showed in the console and my contener web is turned down!

You can see the log here http://pastie.org/1256503

Can help me??

While reading image file,colorspace will not be set in block

Issue by rempargo
Thursday Dec 29, 2011 at 21:20 GMT
Originally opened as #41


this doesn't work,

image = Magick::Image.new(100,100){
 self.colorspace = Magick::LABColorspace
}
p image.colorspace == Magick::LABColorspace

this works

image = Magick::Image.new(100,100)
image.colorspace = Magick::LABColorspace
p image.colorspace == Magick::LABColorspace

Why can't the colorspace be set during the block? Is this a bug or intended (if so, why?).

ImageMagic installed via Homebrew doesn't work

Issue by jkamenik
Thursday Dec 01, 2011 at 18:55 GMT
Originally opened as #39


I use a Mac, and homebrew for many packages including ImageMagick. I noticed a very annoying issue that I had to work around. Homebrew symlinks to /usr/local/bin and /usr/local/include. For example: /usr/local/include/ImageMagick -> /usr/local/homebrew/.../ImageMagick. This works fine with most libraries that need imagemagick since Magick-config produces the correct paths to the symlinks and the compilers just follow the sym links.

The rmagic gem compile does not seem capible of following symlinks and therefore cannot find /usr/local/include/wand/MagickWand.h which is there.

$ gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

        /Users/jkamenik/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for /usr/bin/gcc-4.2... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no

Can't install RMagick 2.13.1. Can't find MagickWand.h.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/jkamenik/.rvm/rubies/ruby-1.8.7-p352/bin/ruby

My solution was to install ImageMagick via https://github.com/maddox/magick-installer/blob/master/magick-installer.sh, which doesn't use symlinks. Without symlinks things work fine.

Missing line when scaling 0.5 and setting stroke-antialias 0

Issue by donv
Thursday Aug 01, 2013 at 10:24 GMT
Originally opened as #82


Hi!

Using rmagick (2.13.2) with ImageMagick 6.8.6 on OS X 10.8.4. Given the following example:

script = <<EOF
scale 0.5,0.5
stroke-antialias 0
line 63.2031,377.2 780,377.2
line 63.2031,335 780,335
line 63.2031,292.8 780,292.8
EOF
require 'rmagick'
d = Magick::Draw.new
script.each_line { |line| d.primitive line }
base_image = Magick::Image.new(400, 300)
d.draw(base_image)
base_image.write('three_lines.png')

I get the following image:

three_lines

I expect three lines to be drawn, but there are only two. Any idea why?

Any help is appreciated.

vector density on read

Issue by hynkle
Saturday Jun 04, 2011 at 19:16 GMT
Originally opened as #25


I'm trying to convert a vector image to a raster image of a larger size, let's say 4x larger. Suppose just running convert img.svg img.png gives you a 100x100 image.

With ImageMagick's convert command, the conversion with enlargement would look like:

convert -density 288 img.svg img.png

Where 288 is of course 4x the default density of 72. And that works beautifully, resulting in the desired 400x400 image without the ugly artifacts you'd get from upsampling a 100x100 raster image to 400x400 (which is indeed why I'm using a vector image for the original in the first place).

But what I would have thought was the corresponding RMagick code:

image = Magick::Image.read('img.svg'){self.density = 144}.first
image.write('img.png')

... results in the same 100x100 image you'd get by just running convert img.svg img.png. Moreover, the image reports its density as "72x72" as though I hadn't supplied anything in read's block.

Am I simply approaching this problem wrong, or this a bug?

ImageList destroy!

Issue by mmb
Saturday Feb 18, 2012 at 05:37 GMT
Originally opened as #47


It looks like if you call destroy! on an ImageList instance it destroys only the last image in the list. If this is the case other people might make the same mistake I did and not be destroying what they thought they were.

Should ImageList.destroy do

il.each { |i| i.destroy! }

Converting JPEG from RGB to CMYK results in segfault

Issue by meanphil
Tuesday Jul 10, 2012 at 23:27 GMT
Originally opened as #55


Trying to save any image as a CMYK Jpeg will result in a crash. If you change CMYK to any other colorspace such as RGB, CMY, or Gray it writes the image OK.

My test script is as follows:

require 'rubygems'; require 'RMagick'

i = Magick::Image.read('test.jpg').first 
i.write("cmyk.jpg") do |ii|
    ii.format = 'JPEG'
    ii.colorspace = Magick::CMYKColorspace
end
$ ruby test.rb 
test.rb:4: [BUG] Segmentation fault

gdb says the segfault is in ImageMagick here:

0x0000000803642ef7 in WriteJPEGImage (image_info=0x80386f000, image=0x803859000) at coders/jpeg.c:2604
2604                  *q++=(JSAMPLE) (ScaleQuantumToChar((Quantum) (QuantumRange-

However the following command line works fine, so it must be something that RMagick is (not?) doing:

convert test.jpg -colorspace CMYK cmyk.jpg

Environment is Ruby 1.9.3-p194, ImageMagick 6.7.7-7, RMagick 2.13.1, FreeBSD 8.2, gcc 4.2.1

don't conflate SetImageColorspace and TransformImageColorspace

Issue by smparkes
Sunday Apr 21, 2013 at 23:04 GMT
Originally opened as #75


rmagick is conflating SetImageColorspace and TransformImageColorspace. This is the difference between "convert foo.png -set colorspace rgb ..." and "convert foo.png -colorspace rgb ..."

The former is like a reinterpret-cast in C++: it doesn't change the data, it just says the data is the given colorspace. The latter is a transform that changes the data based on the original image colorspace and the parameter.

I need SetImageColorspace and in the current code, it's not available if TransformImageColorspace is available.

This is a partial patch. I didn't wire in or test image.transform_colorspace(colorspace). If you're interested, I can ...


smparkes included the following code: https://github.com/rmagick/rmagick/pull/75/commits

support for ImageMagick morphology option

Issue by goodwillta
Tuesday Nov 01, 2011 at 08:15 GMT
Originally opened as #35


morphology option is powerful and extremely handy, and has been available since ImageMagick 6.6.0-1. Are there any plans to include the option in rmagick? It would be greatly appreciated.

Annotating fails when '@' is first character

Issue by VxJasonxV
Thursday Nov 08, 2012 at 10:44 GMT
Originally opened as #59


I had a script in use for years that would record data from Last.fm, and build an image out of various song information.

Some time ago, on the order of months, this script would keep showing the current song being played, but would simply stop working when showing historical playback data.

After poking around, it appears that this was due to a leading @ character when using the annotate method. The rest of the data following the at-symbol does not appear to have any affect.

When invoked, Ruby would return this information:

bin/lastfmsig.rb:14:in `annotate': no text (ArgumentError)
        from bin/lastfmsig.rb:14:in `text'
        from bin/lastfmsig.rb:42
        from bin/lastfmsig.rb:37:in `each'
        from bin/lastfmsig.rb:37

shell returned 1

Changing the first three characters to be " @ " (space-at-space, really any character leading besides @) appears to have fixed this issue.

RMagick ignoring border_color

Issue by rggjan
Tuesday Feb 23, 2010 at 13:50 GMT
Originally opened as #1


With this code:

#!/usr/bin/ruby
require 'RMagick'
include Magick

imagelist=ImageList.new('/home/jan/Desktop/test.jpg')

collage = imagelist.montage do
  self.border_color='red'
  self.border_width=10
  self.geometry=Geometry.new(500, 500)
end

collage.write('/home/jan/Desktop/test_collage.jpg')

IMGCOMMAND="-border 10x10 -bordercolor red -geometry 500x500 /home/jan/Desktop/test_collage_original.jpg"
system "montage /home/jan/Desktop/test.jpg " + IMGCOMMAND

A red border is created with the original imagemagick (test_collage_original) while it is white with Rmagick (test_collage). It should be red in both cases...

"stack level too deep" when calling Magick::Image.read within a fiber (Ruby 1.9.3-p0)

Issue by mamu
Wednesday Nov 30, 2011 at 01:28 GMT
Originally opened as #38


Hi!

I'm not exactly sure what's going on since I get inconsistent results between my Linux dev box and my OS X dev box, both running the same version of Ruby (1.9.3-p0), both using rvm, both running the same version of RMagick (2.13.1), and both running the same version of ImageMagick (6.7.1, compiled from source).

My OS X dev box plays along nicely, but my Linux dev box throws a "stack level too deep" exception when I call Magick::Image.read within a fiber. I'm using the fiber to untangle evented code in a fashion quite similar to igrigorik's em-synchrony project), so this is all being done within the context of EventMachine's event loop. If I downgrade to Ruby 1.9.2-p290 on my Linux box, RMagick begins to work fine again.

Really at quite a loss why OS X would behave but Linux wouldn't. I don't know what else I ought to provide to help track down the issue, but I'd be happy to post anything extra anyone requests.

Thanks!

Could you please post a binary for ruby 1.9.1 on win32!?

Issue by tribalvibes
Thursday Apr 15, 2010 at 06:46 GMT
Originally opened as #3


Really, would it be so much trouble for you to please build and post a binary for a current ruby 1.9.1/win32 runtime? Tonight?! Otherwise this is blocking ruby development with 'rmagick' dependencies for a lot of people. I really have other things to do than build rmagick from source right now as I see it doesn't build with mingw! Thanks!

in place unsharp_mask

Issue by mmb
Tuesday Apr 03, 2012 at 00:46 GMT
Originally opened as #51


Why isn't there an unsharp_mask!

To do it in place, is this the usual way:

img = img.unsharp_mask

Rails 3 Development mode crashes after the first usage of ImageMagick

Issue by jeffdeville
Saturday Jan 08, 2011 at 06:10 GMT
Originally opened as #22


The error message is:
cannot remove Object::Version

I think what's happening is that in development mode, Rails tries to clear itself, and reload the environment somewhat after each page. It's this process that is dying. (The code that actually manipulates my image works, and setting cache_classes: true avoids the problem, but makes it necessary to restart my development server constantly.

Stacktrace:

activesupport (3.0.3) lib/active_support/dependencies.rb:645:in `remove_const'
activesupport (3.0.3) lib/active_support/dependencies.rb:645:in `remove_constant'
activesupport (3.0.3) lib/active_support/dependencies.rb:645:in `instance_eval'
activesupport (3.0.3) lib/active_support/dependencies.rb:645:in `remove_constant'
activesupport (3.0.3) lib/active_support/dependencies.rb:521:in `remove_unloadable_constants!'
activesupport (3.0.3) lib/active_support/dependencies.rb:521:in `each'
activesupport (3.0.3) lib/active_support/dependencies.rb:521:in `remove_unloadable_constants!'
activesupport (3.0.3) lib/active_support/dependencies.rb:317:in `clear'
railties (3.0.3) lib/rails/application/bootstrap.rb:60:in `_callback_after_7'
activesupport (3.0.3) lib/active_support/callbacks.rb:419:in `_run_call_callbacks'
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.1) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/show_exceptions.rb:46:in `call'
railties (3.0.3) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `synchronize'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.3) lib/rails/application.rb:168:in `call'
railties (3.0.3) lib/rails/application.rb:77:in `send'
railties (3.0.3) lib/rails/application.rb:77:in `method_missing'
railties (3.0.3) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.1) lib/rack/content_length.rb:13:in `call'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in `service'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:162:in `start'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:95:in `start'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:92:in `each'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:92:in `start'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:23:in `start'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:82:in `start'
rack (1.2.1) lib/rack/handler/webrick.rb:13:in `run'
rack (1.2.1) lib/rack/server.rb:213:in `start'
railties (3.0.3) lib/rails/commands/server.rb:65:in `start'
railties (3.0.3) lib/rails/commands.rb:30
railties (3.0.3) lib/rails/commands.rb:27:in `tap'
railties (3.0.3) lib/rails/commands.rb:27
script/rails:6:in `require'
script/rails:6

Patch for missing RVG::Bezier

Issue by ghost
Monday Aug 27, 2012 at 17:15 GMT
Originally opened as #57


diff --git a/lib/rvg/embellishable.rb b/lib/rvg/embellishable.rb
index a1613da..c07ae7f 100644
--- a/lib/rvg/embellishable.rb
+++ b/lib/rvg/embellishable.rb
@@ -23,6 +23,22 @@ module Magick

         end     # class Shape

+        class Bezier < Shape
+
+          # Define a bezier curve.
+          def initialize(*points)
+            super()
+            if points.length == 0
+                raise ArgumentError, "no points specified"
+            elsif points.length % 2 != 0
+                raise ArgumentError, "odd number of arguments specified"
+            end
+            @primitive = :bezier
+            @args = points
+          end
+
+        end     # class Bezier
+
         class Circle < Shape

             # Define a circle with radius +r+ and centered at [<tt>cx</tt>, <tt>cy</tt>].
@@ -260,6 +276,13 @@ module Magick
         # Methods that construct basic shapes within a container
         module ShapeConstructors

+            # Draw a bezier curve.
+            def bezier(*points)
+                bezier = Bezier.new(*points)
+                @content << bezier
+                return bezier
+            end
+
             # Draws a circle whose center is [<tt>cx</tt>, <tt>cy</tt>] and radius is +r+.
             def circle(r, cx=0, cy=0)
                 circle = Circle.new(r, cx, cy)

Problem with ruby 1.9.2 on Snow Leopard

Issue by openhood
Wednesday Mar 03, 2010 at 10:31 GMT
Originally opened as #2


When I required RMagick, I get these errors:

dyld: lazy symbol binding failed: Symbol not found: _rb_intern2
  Referenced from: /Users/joseph/.rvm/gems/ruby-1.9.2-head/gems/rmagick-2.13.0/lib/RMagick2.bundle
  Expected in: flat namespace

dyld: Symbol not found: _rb_intern2
  Referenced from: /Users/joseph/.rvm/gems/ruby-1.9.2-head/gems/rmagick-2.13.0/lib/RMagick2.bundle
  Expected in: flat namespace

ruby 1.9.2, ImageMagick 6.6.9, RMagick 2.13.1, Mac OS 10.6

Issue by loneaggie
Thursday Jul 07, 2011 at 01:12 GMT
Originally opened as #28


Whether from rails, script, or irb, anytime I attempt to even open an image the process locks up. It does not even respond to ctrl-c. I have to force quit it. I compiled ImageMagick with --disable-openmp and convert works as expected from the command line. Is this a known issue?

Rmagick fails to require lcms-2.1

Issue by andoriyu
Sunday Jun 12, 2011 at 22:12 GMT
Originally opened as #26


Snow Leopard 10.6.7

/Users/andoriyu/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.8/lib/active_support/dependencies.rb:239:in `require': dlopen(/Users/andoriyu/.rvm/gems/ruby-1.9.2-p180/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/Cellar/little-cms/2.1/lib/liblcms2.2.dylib (LoadError)
Referenced from: /Users/andoriyu/.rvm/gems/ruby-1.9.2-p180/gems/rmagick-2.13.1/lib/RMagick2.bundle
Reason: image not found - /Users/andoriyu/.rvm/gems/ruby-1.9.2-p180/gems/rmagick-2.13.1/lib/RMagick2.bundle

Thing is homebrew doesn't have formula fir little-cms 2.1, only 1.19. Is there any work around?

Code reorganization

Issue by wingfire
Wednesday Apr 18, 2012 at 08:35 GMT
Originally opened as #53


Hi all,
the latest message in this code is we have a new developer.
Is happening anything on this site?
I'd like the reorganize the code along "lazy loading" with ActiveSupport::Dependencies.autoload_paths
Any issue with this?

Problems installing with homebrew (and not macports)

Issue by tute
Tuesday Apr 19, 2011 at 21:24 GMT
Originally opened as #24


I hardwired the following to be able to install rmagick, since I don't have Macports:

$ sudo ln -s /bin/mkdir /opt/local/bin/gmkdir $ sudo ln -s /usr/bin/install /opt/local/bin/ginstall

Because I've seen in lines 85 and 86 of ext/RMagick/Makefile:

MAKEDIRS = /opt/local/bin/gmkdir -p INSTALL = /opt/local/bin/ginstall -c

Shouldn't the Makefile test if /opt/local/bin/gmkdir and /opt/local/bin/ginstall exists?

Regards,

Tute.

Image#remap produces unreasonable result

Issue by jxtps
Wednesday Jun 09, 2010 at 02:49 GMT
Originally opened as #8


Image#remap produces an unreasonable result for the attached images. The pixel at 0,0 is remapped from (254, 254, 254) -> (255, 227, 0) despite there being a (255, 255, 255) in the remap_image ("colors" below), which is much closer in RGB space than the color picked.

See: http://www.imagemagick.org/RMagick/doc/image3.html#remap

RMagick command sequence:

j@ubuntu:~/work/test$ irb

irb(main):001:0> require 'RMagick'
puts Magick::Long_version
=> true

irb(main):002:0> puts Magick::Long_version
This is RMagick 2.13.1 ($Date: 2009/12/20 02:33:33 $) Copyright (C) 2009 by Timothy P. Hunter
Built with ImageMagick 6.6.2-3 2010-06-08 Q8 http://www.imagemagick.org
Built for ruby 1.9.1
Web page: http://rmagick.rubyforge.org
Email: [email protected]
=> nil

irb(main):003:0> img = Magick::Image.read('input.png').first
=> input.png PNG 36x41 36x41+0+0 DirectClass 8-bit 1kb

irb(main):004:0> img.pixel_color(0,0)
=> red=254, green=254, blue=254, opacity=0

irb(main):005:0> colors = Magick::Image.read('colors.png').first
=> colors.png PNG 454x1 454x1+0+0 DirectClass 8-bit 1kb

irb(main):006:0> colors.pixel_color(413,0)
=> red=255, green=255, blue=255, opacity=0

irb(main):007:0> img.remap(colors, Magick::NoDitherMethod)
=> input.png PNG 36x41 36x41+0+0 PseudoClass 454c 8-bit 1kb

irb(main):008:0> img.pixel_color(0,0)
=> red=255, green=227, blue=0, opacity=0

irb(main):009:0> img.write('output.png')
=> input.png=>output.png PNG 36x41 36x41+0+0 PseudoClass 454c 8-bit 1kb

(Can't attach images to github issues, included them in the report emailed to the rmagick rubyforge email address)

Can't install rmagick

Issue by cmyk
Thursday Jul 22, 2010 at 06:40 GMT
Originally opened as #10


I am trying to install rmagick on a shared host. I don't have root access.
But I can compile things.

I compiled ImageMagick like this:

./configure --prefix=$HOME/bin --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=$FONTS

Then I exported the paths and tried to install the gem:

export LDFLAGS="-L/home/dorfbran/bin/lib" 
export CPPFLAGS="-I/home/dorfbran/bin/include/ImageMagick" 
gem install rmagick

This is the resulting error message:

[email protected] [~]# gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes

Warning: Found more than one ImageMagick installation. This could cause problems at runtime.
         /home/dorfbran/bin/bin/Magick-config reports version 6.6.3 Q8 is installed in /home/dorfbran/bin
         /usr/bin/Magick-config reports version 6.6.3 Q16 is installed in /usr
Using 6.6.3 Q8 from /home/dorfbran/bin.

checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.

Here's the mkmf.log:
http://pastesite.com/17652

And here's the directory structure of ImageMagick:
http://pastesite.com/17635

These are the env:
http://pastesite.com/17636

Thanks for any help!

Cheers,
Phil

Ruby 2.0 warnings

Issue by dicom
Monday Feb 25, 2013 at 09:19 GMT
Originally opened as #69


Hello

I just tried installing the RMagick gem on the newly released Ruby 2.0.0 on Windows XP 32-bit (using DevKit), and it seems to produce several warnings while building the documentation. These are probably related to the fact that Ruby 2.0 has switched default encoding from ASCII-8BIT to UTF-8. Although RMagick seems to work fine after the install, I still think these warnings should be eliminated, to avoid alarming the user.

Here's the installation log:

C:\Ruby200\bin>gem install rmagick --platform=ruby -- --with-opt-lib=C:/Programfiler/ImageMagick-6.7.6-Q16/lib --with-opt-include=c:/Programfiler/ImageMagick-6.7.6-Q16/include
Fetching: rmagick-2.13.2.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-opt-lib=C:/Programfiler/ImageMagick-6.7.6-Q16/lib --with-opt-include=c:/Program
filer/ImageMagick-6.7.6-Q16/include'
This could take a while...
Successfully installed rmagick-2.13.2
Parsing documentation for rmagick-2.13.2
unable to convert "\x90" from ASCII-8BIT to UTF-8 for ext/RMagick/RMagick2.so, skipping
unable to convert "\xB4" from ASCII-8BIT to UTF-8 for ext/RMagick/rmagick.o, skipping
unable to convert "\xA0" from ASCII-8BIT to UTF-8 for ext/RMagick/rmdraw.o, skipping
unable to convert "\x9E" from ASCII-8BIT to UTF-8 for ext/RMagick/rmenum.o, skipping
unable to convert "\x87" from ASCII-8BIT to UTF-8 for ext/RMagick/rmfill.o, skipping
unable to convert "\xDC" from ASCII-8BIT to UTF-8 for ext/RMagick/rmilist.o, skipping
unable to convert "\xAA" from ASCII-8BIT to UTF-8 for ext/RMagick/rmimage.o, skipping
unable to convert "\xC6" from ASCII-8BIT to UTF-8 for ext/RMagick/rminfo.o, skipping
unable to convert "\xEA" from ASCII-8BIT to UTF-8 for ext/RMagick/rmmain.o, skipping
unable to convert "\x80" from ASCII-8BIT to UTF-8 for ext/RMagick/rmmontage.o, skipping
unable to convert "\xFB" from ASCII-8BIT to UTF-8 for ext/RMagick/rmpixel.o, skipping
unable to convert "\xC0" from ASCII-8BIT to UTF-8 for ext/RMagick/rmstruct.o, skipping
unable to convert "\xC1" from ASCII-8BIT to UTF-8 for ext/RMagick/rmutil.o, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/RMagick2.so, skipping
Installing ri documentation for rmagick-2.13.2
Done installing documentation for rmagick (10 sec).
1 gem installed

could/should cycle through converts

Issue by rdp
Monday Aug 02, 2010 at 12:01 GMT
Originally opened as #11


Currently on windows if I have more than one "convert.exe" in the path, it might be nice to try each of them until it can hopefully find one that works :)

See also this updated branch for some commits to help with mingw compat: http://github.com/rdp/rmagick
Thanks.
-r

Segfaults w/ 1.9.2 and threads

Issue by vangberg
Thursday Sep 16, 2010 at 17:16 GMT
Originally opened as #16


Using RMagick in a thread under 1.9.2 causes a segfault.

$ cat thread-rmagick.rb
require "RMagick"

Thread.new {
  i = Magick::Image.read("image.png")
}

$ ruby thread-rmagick.rb
thread-rmagick.rb:4: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

-- control frame ----------
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :read
c:0003 p:0019 s:0007 b:0007 l:001598 d:000006 BLOCK  thread-rmagick.rb:4
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
thread-rmagick.rb:4:in `block in <main>'
thread-rmagick.rb:4:in `read'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Ruby: 1.9.2p0
RMagick: 2.13.1
ImageMagick: 6.6.4-2

Mac OS X 10.6

Gem fails install: cannot find -lCORE_RL_magick_, cannot find -lX11

Issue by starrychloe
Sunday Mar 03, 2013 at 20:57 GMT
Originally opened as #70


I'm using RailsInstaller.org. I have DevKit with gcc. Here is my version and path.

C:\Sites\MPay2Park>path
PATH=c:\RailsInstaller\ImageMagick-6.7.9-Q8;C:\RailsInstaller\Ruby1.9.3\bin;C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\bin;C:\RailsInstaller\DevKit\bin;C:\RailsInstaller\Git\cmd;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\RailsInstaller\DevKit\mingw\bin

C:\Sites\MPay2Park>ruby -v
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

C:\Sites\MPay2Park>uname -a
MINGW32_NT-6.2 XPS 1.0.17(0.48/3/2) 2011-04-24 23:39 i686 Msys

Here is the error:

C:\Sites\MPay2Park>gem install rmagick -v '2.13.2'
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
        ERROR: Failed to build gem native extension.

        C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for stdint.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/RailsInstaller/Ruby1.9.3/bin/ruby
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file.
(RuntimeError)
You have to install development tools first.
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:931:in `block in have_header'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:930:in `have_header'
        from extconf.rb:194:in `<main>'


Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/ext/RMagick/gem_make.out

Here is the mkmf.log:
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\rmagick-2.13.2\ext\RMagick\mkmf.log

checking for Ruby version >= 1.8.5... -------------------- yes

--------------------

"gcc -o conftest -IC:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/i386-mingw32 -IC:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby/backward -IC:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1 -I.     -O3 -fno-omit-frame-pointer -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/RailsInstaller/Ruby1.9.3/lib -L.    -lCORE_RL_magick_ -lX11  -lmsvcrt-ruby191  -lshell32 -lws2_32 -limagehlp  "
c:/railsinstaller/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lCORE_RL_magick_
c:/railsinstaller/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lX11
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: int main() {return 0;}
/* end */

rmagick 1.15.17 Failed Install on Mac OS X

Issue by ylluminate
Thursday Jul 28, 2011 at 18:02 GMT
Originally opened as #31


Attempting to bundle install a Gemfile from ChiliProject and running into an issue with rmagick compilation:

Gemfile: https://gist.github.com/1112118

The error in question appears to be:
rmagick.h:20:20: error: intern.h: No such file or directory

But the chunk that contains this in context is:

---> ext/RMagick
make
gcc -I. -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.0.0 -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I/Volumes/StorageVolume/Users/username/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-1.15.17/ext/RMagick -DRUBY_VERSION=0x192  -I/usr/local/include/ImageMagick -fno-common   -o rmdraw.o -c rmdraw.c
In file included from rmdraw.c:10:
rmagick.h:20:20: error: intern.h: No such file or directory
In file included from rmagick.h:21,
                 from rmdraw.c:10:
/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h"
rmdraw.c: In function ‘Draw_annotate’:
rmdraw.c:448: warning: ‘InterpretImageAttributes’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:96)
rmdraw.c: In function ‘get_dummy_tm_img’:
rmdraw.c:1419: warning: ‘AllocateImage’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:119)
rmdraw.c:1427: error: too many arguments to function ‘rb_cvar_set’
rmdraw.c: In function ‘get_type_metrics’:
rmdraw.c:1504: warning: ‘InterpretImageAttributes’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:96)
make[1]: *** [rmdraw.o] Error 1
setup.rb:655:in `command': system("make") failed (RuntimeError)
    from setup.rb:664:in `make'
    from setup.rb:1258:in `setup_dir_ext'
    from setup.rb:1532:in `block in traverse'
    from setup.rb:1549:in `dive_into'
    from setup.rb:1530:in `traverse'
    from setup.rb:1534:in `block (2 levels) in traverse'
    from setup.rb:1533:in `each'
    from setup.rb:1533:in `block in traverse'
    from setup.rb:1549:in `dive_into'
    from setup.rb:1530:in `traverse'
    from setup.rb:1524:in `block in exec_task_traverse'
    from setup.rb:1519:in `each'
    from setup.rb:1519:in `exec_task_traverse'
    from setup.rb:1246:in `exec_setup'
    from setup.rb:996:in `exec_setup'
    from setup.rb:826:in `invoke'
    from setup.rb:772:in `invoke'
    from setup.rb:1578:in `'
make: *** [all] Error 1

Any help would be much appreciated so as to get this resolved.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.