Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for resizing image assets #130

Merged
merged 9 commits into from
Mar 8, 2015
Merged

Conversation

zmbush
Copy link
Contributor

@zmbush zmbush commented Mar 6, 2015

Examples:

{% asset_path large-image.jpg [resize:300x300] %}
{% image large-image.png [resize:50x50] %}
{% image large-image.png [resize:50x50, autosize] %}

Partially fixes #118

@ixti ixti merged commit 539e705 into envygeeks:master Mar 8, 2015
@ixti
Copy link
Contributor

ixti commented Mar 8, 2015

Awesome work! Thanks!

One thing I wanted to note though, IMHO it's better to make tmp dir configurable and by default it should be File.join(Dir.tmpdir, "jekyll-assets")

@ixti
Copy link
Contributor

ixti commented Mar 8, 2015

Or, it actually can be cache_path.join("resized").

@zmbush
Copy link
Contributor Author

zmbush commented Mar 9, 2015

Good idea, I just fixed this with #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image resize / compression
2 participants