rbuchberger / jekyll_picture_tag

Easy responsive images for Jekyll.
https://rbuchberger.github.io/jekyll_picture_tag/
BSD 3-Clause "New" or "Revised" License
623 stars 106 forks source link

Liquid Exception: no such file or directory #65

Closed rask closed 5 years ago

rask commented 9 years ago

I'm attempting to build my Jekyll project which will (I hope) use this picture tag plugin. I'm on Windows, latest Jekyll and latest version of the plugin.

When building I receive the following error:

Generating image-360by248-abcdefg.jpg
  Liquid Exception: No such file or directory - identify -ping C:/Users/user/AppData/Local/Temp/mini_magick20150829-8176-87razr.jpg in _drafts/some-draft.md
        done.

(I ran with --trace but it gave no more information.)

My picture configuration:

picture:
    source: "_img"
    output: "img"
    markup: "picture"
    presets:
        default:
            ppi: [1, 1.5, 2]
            attr:
                class: "post-image-medium"
                itemprop: "image"
            source_large:
                media: "(min-width: 720px)"
                width: "360"
            source_medium:
                media: "(min-width: 480px)"
                width: "180"
            source_default:
                width: "120"
        post_large:
            ppi: [1, 1.5, 2]
            attr:
                class: "post-image-large"
                itemprop: "image"
            source_large:
                media: "(min-width: 720px)"
                width: "720"
            source_medium:
                media: "(min-width: 480px)"
                width: "480"
            source_default:
                width: "320"
        post_small:
            ppi: [1, 1.5, 2]
            attr:
                class: "post-image-small"
                itemprop: "image"
            source_large:
                media: "(min-width: 720px)"
                width: "240"
            source_medium:
                media: "(min-width: 480px)"
                width: "120"
            source_default:
                width: "80"

The _drafts/some-draft.md has a simple picture tag used with:

{% picture directory/image.jpg %}

And jekyllsource/_img/directory/image.jpg exists. When jekyll serve --drafts --trace is used the destination directory (jekyllbuilt/img/directory) is created but no contents (images) appear inside it.

The error pops up and the generated draft page is an totally empty HTML file.

I installed the plugin using a Gemfile (bundle install) and I copied the raw jekyll-picture-tag.rb to the Jekyll plugins directory too.

Additional warns and notices in the output that I could find:

Unresolved specs during Gem::Specification.reset appears for redcarpet and listen.

Could these have anything to do with the error?

btobolaski commented 9 years ago

I don't know whats happening here. I did find this but, it doesn't seem particularly helpful https://github.com/minimagick/minimagick/issues/69

rask commented 9 years ago

I see, thanks for sharing. I'll try the PATH fiddling and see whether it helps.

campjacob commented 9 years ago

I am also experiencing a similar problem I believe. I'm kind of a jekyll newbee, and not super proficient at all of this.

The only change I made was:

picture:
  source: "images/_fullsize"

I made a post using the picture tag. This is the error that I get:

Generating is-my-mac-magic-photo-700by525-5b4f4d.jpg Liquid Exception: No such file or directory - identify in _posts/2014-08-17-is-my-mac-magic.md/#excerpt done.

In my site folder, the generated folder is empty.

I'd love some help to know if there is some help in what to do. Also, running jekyll 2.5.3 on a mac if that helps.

Thank you Jacob

kwisatz commented 6 years ago

This happens when you don't have the imagemagick package installed on your system which is required by the picture_tag plug-in.

jerturowetz commented 6 years ago

I'm getting the same behavior Windows 10 with ImageMagick 7.0.7-27 Q16 (64-bit) for Windows installed.

I imagine this has something to do with the MiniMagic gem & paths. I'll try a bit later with a docker container to see if I can recreate the issue in a simpler environment.

rbuchberger commented 5 years ago

I don't have any windows computers to test on, so I can't really troubleshoot this. Since the plugin was almost completely rewritten since then, I'm going to assume it was fixed then. If anyone runs into this again, please reopen or file a new issue!