lawmurray / jekyll-responsive-magick

A Jekyll plugin for responsive images using ImageMagick. Works with Jekyll 4.
https://indii.org/software/jekyll-responsive-magick
Apache License 2.0
11 stars 1 forks source link

uncaught throw "width/height: failed to execute 'identity', is ImageMagick installed?" included (Liquid::ArgumentError) #9

Closed leonism closed 5 months ago

leonism commented 5 months ago

Okay, I'm not really sure how did I end-up with the error again, cause the other days, I just sort out the problem, but I came across a new issue again today. Here's what I've put on my syntax :

<img
          itemprop="image"
          src="{{ "/assets/img/posts/kpop-female-01/kpop-female-sunglasses-00.webp" }}"
          srcset="{{ "/assets/img/posts/kpop-female-01/kpop-female-sunglasses-00.webp" | srcset }}"
          width="{{ "/assets/img/posts/kpop-female-01/kpop-female-sunglasses-00.webp" | width }}"
          height="{{ "/assets/img/posts/kpop-female-01/kpop-female-sunglasses-00.webp" | height }}"
          class="card-img-top img-fluid"
          alt="Some random text goes here">

Once I try to build them, I got the following error :

/Users/some_users/.rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/jekyll-responsive-magick-1.3.1/lib/jekyll-responsive-magick.rb:40:inthrow': Liquid error (/Volumes/DATA/Jekyll/jekyll-projects/_includes/home-cards-glasses.html line 14): uncaught throw "width/height: failed to execute 'identity', is ImageMagick installed?" included (Liquid::ArgumentError)`

I've checked manually with the following :

convert example.jpg -strip -quality 30 -resize 256 example-256w.jpg and the identify -ping -format '%w,%h' example.jpg

They're working perfectly fine, so I knew it for sure, both ImageMagick and the gem "jekyll-responsive-magick" was properly installed, I'm currently stuck and couldn't figure this one out, any help greatly appreciate it.

Thanks,

leonism commented 5 months ago

Ahh, my bad I was over sighting a typo of spaces in between the paths. Please ignore this thread. It's been solved now.