Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Add no transform #6

Merged
merged 3 commits into from Dec 23, 2014
Merged

Add no transform #6

merged 3 commits into from Dec 23, 2014

Conversation

noahadams
Copy link
Contributor

Status: Consider merging

Reviewers: @johnboxall @jansepar
Linked PRs: https://github.com/mobify/imageresize/pull/47

Changes

  • Adds support for "no-transform" format, whihc will cause resizing options (height/width) to be dropped

How to test-drive this PR

  • Take a look at the tests, run 'em
  • Try using it with a project, by pointing its bower dependencies this-a-way

@@ -133,7 +133,20 @@ ResizeImages.getImageURL = function(url, options) {
bits.push('c' + opts.cacheHours);
}

if (opts.format && opts.format === "no-transform") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noahadams seems like we've doubled up the logic here? We can probably remove this one and just rely on what's below?

@johnboxall
Copy link
Member

👍

johnboxall added a commit that referenced this pull request Dec 23, 2014
@johnboxall johnboxall merged commit c398cb6 into master Dec 23, 2014
@johnboxall johnboxall deleted the add-no-transform branch December 23, 2014 02:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants