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

Added a troubleshooting guide to the readme #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,37 @@ gems:
- jekyll-srcset
```

## Troubleshooting

Jekyll-srcset uses `ImageMagick` and the `rmagick` Ruby gem.

If you're running into an error either running the `bundle` command, or running `gem install jekyll-srcset`, try the following:

**If you're on a Mac:**

First try running these commands (You'll need homebrew installed):

```
brew install imagemagick
gem install rmagick
```

If that didn't work, try these commands:

```
brew unlink imagemagick
brew install imagemagick@6 && brew link imagemagick@6 --force
```

**If you're on Linux:**

Run these commands

```
sudo apt-get install libmagickcore-dev libmagickwand-dev
gem install rmagick
```

## Usage

Use it like this in any Liquid template:
Expand Down