gottfrois / link_thumbnailer

Ruby gem that fetches images and metadata from a given URL. Much like popular social website with link preview.
MIT License
512 stars 106 forks source link

Crashes when using in a url without image #151

Closed haseebeqx closed 1 year ago

haseebeqx commented 3 years ago

When I run,

LinkThumbnailer.generate("https://ag.purdue.edu/GMOs/Pages/WhatareGMOs.aspx")

it is generating the error

lib/link_thumbnailer/image_parser.rb:15:in size': undefined methodsize' for nil:NilClass (NoMethodError)

gottfrois commented 1 year ago

Looks like this is fixed in latest version.