Open inetbiz opened 2 years ago
from jekyll_picture_tag/images/source_image.rb:73:in ext':undefined method downcase for nil:NilClass (NoMethodError)
# /home/dave/my_blog/assets/images/somefolder/myimage.jpg
# ^^^
def ext
@ext ||= File.extname(name)[1..].downcase
end
``
Hm. Are you sure it's getting passed a filename? What exactly is in the page.featured_image
variable?
I thought JPT would fail more gracefully than this, it's probably worth adding a check for that.
the loop...
<header>
<figure>
<figcaption>{{page.featured_image | inspect}}</figcaption>
</figure>
</header>
<figure><figcaption>"prestashop-tag.jpg"</figcaption></figure>
I also ran it through a mime detection program to see if the jpg was corrupt.
Hi,
I am using the tag with {% picture "{{ page.featured_image }}" %} which in the blog post is: featured_image: "/uploads/test.jpg"
And I have the following error undefined method `delete_prefix' for nil:NilClass
Could this be linked ?
Error
Tag
{% picture blog-feature {{page.featured_image}} --alt {{page.excerpt}} %}
HTML Syntax Test
Output
<figure><figcaption>"prestashop-tag.jpg"</figcaption></figure>
Gem info
FS Info