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

Fix image resize filter from object #2164

Merged
merged 1 commit into from
May 5, 2015
Merged

Fix image resize filter from object #2164

merged 1 commit into from
May 5, 2015

Conversation

asturur
Copy link
Member

@asturur asturur commented May 2, 2015

Note on changes on image initialize:

We are calling initElement, that calls setElement, that is calling initConfig and applyFilters.
So the part after this is just duplicated.

@asturur
Copy link
Member Author

asturur commented May 2, 2015

couple of test needed


if (options.filters) {
this.filters = options.filters;
this.applyFilters();
Copy link
Member

Choose a reason for hiding this comment

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

How would the filters be applied now during image initialization?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I see your explanation. Sorry, got it!

@kangax
Copy link
Member

kangax commented May 3, 2015

After tests, I'm ready to merge then!

@asturur
Copy link
Member Author

asturur commented May 4, 2015

@kangax any help on why the test is failing? it gives no clue. The row is:

ok(filterFromObj instanceof fabric.Image.filters.Resize);

@asturur
Copy link
Member Author

asturur commented May 5, 2015

I commented the part of the test that i added and does not run under node.
Ok there was a copy of fabric.Image.fromObject in node.js file.

@asturur
Copy link
Member Author

asturur commented May 5, 2015

@kangax it is finally done.

kangax added a commit that referenced this pull request May 5, 2015
Fix image resize filter from object
@kangax kangax merged commit 68915cb into fabricjs:master May 5, 2015
@kangax
Copy link
Member

kangax commented May 5, 2015

+Changelog

@asturur asturur deleted the Fix-Image-from-Object branch May 5, 2015 14:33
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.

4 participants