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

Errno::ENAMETOOLONG: File name too long - data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAd0AAAC #39

Closed
metalelf0 opened this issue Jun 9, 2014 · 2 comments

Comments

@metalelf0
Copy link

Hi, I found an issue with embedded images. You can see it trying to generate images for a website like www.trello.com, which has an embedded PNG on their home page.

Here is the relevant part of the stacktrace:

/usr/lib/ruby/1.9.1/open-uri.rb:35 in "initialize"
/usr/lib/ruby/1.9.1/open-uri.rb:35 in "open"
/usr/lib/ruby/1.9.1/open-uri.rb:35 in "open"
/gems/fastimage-1.6.2/lib/fastimage.rb:277 in "fetch_using_open_uri"
/gems/fastimage-1.6.2/lib/fastimage.rb:174 in "initialize"
/gems/fastimage-1.6.2/lib/fastimage.rb:113 in "new"
/gems/fastimage-1.6.2/lib/fastimage.rb:113 in "size"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/image_parsers/size.rb:8 in "perform"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/image_parser.rb:9 in "size"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/models/image.rb:14 in "initialize"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scrapers/default/images.rb:58 in "new"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scrapers/default/images.rb:58 in "modelize"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scrapers/default/images.rb:12 in "block in value"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scrapers/default/images.rb:12 in "map"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scrapers/default/images.rb:12 in "value"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scrapers/base.rb:23 in "call"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scraper.rb:34 in "block (2 levels) in call"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scraper.rb:32 in "each"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scraper.rb:32 in "block in call"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scraper.rb:31 in "each"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/scraper.rb:31 in "call"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer/page.rb:18 in "generate"
/gems/link_thumbnailer-2.0.3/lib/link_thumbnailer.rb:16 in "generate"
/app/api/api_profiles.rb:117 in "block in <class:ApiProfiles>"

Thanks a lot!

@gottfrois
Copy link
Owner

hum sounds like a bug with the gem I use to fetch the images... I will look into this and let you know. Thx

@gottfrois
Copy link
Owner

Fixed in v2.0.4. Will now return the base64 image.

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