Skip to content
This repository was archived by the owner on Sep 23, 2020. It is now read-only.
This repository was archived by the owner on Sep 23, 2020. It is now read-only.

Plugin won't generate 2x & 3x of an image #3

Description

@digitalgutenberg

Hi!

I'm having some problems with this gem. Let's say I have an original image with the following dimensions, 1460x649, and then set the width to "450" in the template, there would only be one image generated. The generated image would have a dimension of 450x200, but would be called "image-name-1460x649.png", which I assume is wrong.

My template is like this:
{% image_tag src=post.indeximg width="450" %}

And the html output is:

<img src="img/image-name-1460x649.png" width="450" srcset="img/image-name-1460x649.png 1x, img/image-name-1460x649.png 2x, img/image-name-1460x649.png 3x">

In other words, the 2x and 3x versions are not generated at all.

I'm assuming that this might be a problem somehow connected to rmagick. When I run 'jekyll serve' or 'jekyll build', I see the following error message:
[DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead
(Full paste: https://gist.github.com/digitalgutenberg/e3603e7e8027bebe9dfd#file-gistfile1-txt )

I then did a
sudo gem install rmagick

but the error message persisted. However, I should point out that I'm new to jekyll and the Ruby ecosystem, so perhaps I'm overlooking something basic here?

For the record, I've installed jekyll-srcset (plus the other gems I use) systemwide, so I don't use a gemfile for this project. I use the latest version of Jekyll (3.1.1).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions