tyre / gutenex

Native PDF generation for Elixir
MIT License
243 stars 35 forks source link

Specify more strict imagineer version #6

Closed danmarcab closed 8 years ago

danmarcab commented 8 years ago

Hi, When I added the library to my project I got this compilation error:

==> gutenex
Compiled lib/gutenex/geometry.ex
Compiled lib/gutenex/geometry/bezier.ex
lib/gutenex/geometry/bezier.ex:2: warning: unused import Gutenex.Geometry
Compiled lib/gutenex/geometry/line.ex
Compiled lib/gutenex/geometry/rectangle.ex
lib/gutenex/geometry/rectangle.ex:2: warning: unused import Gutenex.Geometry
Compiled lib/gutenex/pdf/font.ex
Compiled lib/gutenex/pdf/graphics.ex

== Compilation error on file lib/gutenex/pdf/images.ex ==
** (CompileError) lib/gutenex/pdf/images.ex:5: Imagineer.Image.__struct__/0 is undefined, cannot expand struct Imagineer.Image
    (elixir) src/elixir_map.erl:58: :elixir_map.translate_struct/4
    (stdlib) lists.erl:1353: :lists.mapfoldl/3
    (stdlib) lists.erl:1354: :lists.mapfoldl/3

It was trying to use imagineer 0.2.1. Locking it to 0.1.0 solve the issue.

tyre commented 8 years ago

Ah yes, this is good. I just updated Imagineer a few weeks ago and haven't ported the changes here. Should all PNGs to be supported soon.