Skip to content

Conversation

@mikestreety
Copy link

No description provided.

@mikestreety
Copy link
Author

As mention in this issue I've added grayscale and other image filters

@adityapatadia
Copy link
Contributor

Checks are failing. Can you look what is wrong? Please also write unit test for new functions.

@mikestreety
Copy link
Author

Apologies - was using PHP7 at home.

I'm not quite sure where to begin with the tests. Would I create images in the ressources and compare them?

@adityapatadia
Copy link
Contributor

@adityapatadia
Copy link
Contributor

Hi, Any update on this? Will you correct it?

@mikestreety
Copy link
Author

mikestreety commented Sep 3, 2017 via email

@adityapatadia
Copy link
Contributor

Please check link for unit tests already written. You would ideally add one pre-processed image as string and then compare it with one unprocessed image processed by this library. This file has all tests written: https://github.com/eventviva/php-image-resize/blob/master/test/Test.php

@rakshazi
Copy link
Contributor

Hi!
Any update on this?

@adityapatadia
Copy link
Contributor

adityapatadia commented Sep 10, 2017

It's pending because if unit tests.

@mikestreety
Copy link
Author

Hello,

Sorry, I've not looked further into this - been slammed with work and personal projects.

I'm not quite sure how to make a pre-processed image as a string and still unsure how to write the tests for this. Any help would be hugely appreciated.

@adityapatadia
Copy link
Contributor

You can use fromstring and tostring methods of this library. Please check readme file and also check the test source code which can be found from above link I posted.

@mikestreety
Copy link
Author

Hey, sorry for the delayed reply. I've tried and failed many times to pick this up and understand it but my brain just won't accept it.

If this is not a viable pull request - delete it and I'll use my own fork on my personal projects. Sorry to be a burden!

Thanks for the great package 😄

@nanmu42
Copy link

nanmu42 commented Oct 26, 2017

Thanks for the effort anyway, dude. 👍

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