Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with the example image? #8

Open
Siyfion opened this issue Apr 3, 2019 · 1 comment
Open

Error with the example image? #8

Siyfion opened this issue Apr 3, 2019 · 1 comment

Comments

@Siyfion
Copy link

Siyfion commented Apr 3, 2019

I get the following error when trying to generate with my own code, but the example image mentioned in the README:

iex(1)> ElixirPoster.go

12:54:50.071 [debug] Loading code from './code'...

12:54:50.082 [debug] Joining code...

12:54:56.629 [debug] Loading image from './image.png'...

12:54:56.629 [debug] Skipping unknown header cHRM
** (UnicodeConversionError) invalid encoding starting at <<245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, ...>>
    (elixir) lib/list.ex:906: List.to_string/1
    (elixir) lib/enum.ex:1940: Enum."-join/2-lists^foldl/2-0-"/3
    (elixir) lib/enum.ex:1940: Enum.join/2
    lib/imagineer/image/png/compression/zlib.ex:27: Imagineer.Image.PNG.Compression.Zlib.decompress/1
    lib/imagineer/image/png/compression.ex:14: Imagineer.Image.PNG.Compression.decompress/1
    lib/imagineer/image/png/data_content.ex:12: Imagineer.Image.PNG.DataContent.process/1
    lib/imagineer.ex:27: Imagineer.detect_type_and_process/1
    (elixir_poster) lib/elixir_poster.ex:59: ElixirPoster.load_image/1
@pcorey
Copy link
Owner

pcorey commented Apr 3, 2019

Hey @Siyfion, not sure what I can do to help other than to tell you that the example image was created with Photoshop as a non-interlaced RGB 8bit PNG. Like the stack trace says, this project is using Imagineer to load images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants