image icon indicating copy to clipboard operation
image copied to clipboard

Implemented basic ImageMagick trim modifier

Open seebeen opened this issue 1 year ago • 9 comments

Let's use this as a starting point. Looking forward to your comments @olivervogel

Will close #1239

seebeen avatar Jan 16 '24 17:01 seebeen

Wow, that was fast. I will take a look later. 👀

olivervogel avatar Jan 16 '24 17:01 olivervogel

Works very well. I have only made a few minor comments about the PSR standard. Otherwise you can try to integrate the modifier with as good as it gets same functionality for the GD library, then I can merge it.

I avoid using PHPStan as the plague. Do you mind if I add-in PHPCS as a dev dependency with a PSR12 standard config? We can spend some time tweaking it afterward :)

seebeen avatar Jan 16 '24 23:01 seebeen

I avoid using PHPStan as the plague. Do you mind if I add-in PHPCS as a dev dependency with a PSR12 standard config?

Do you want to add phpcs additionally or instead of phpstan?

olivervogel avatar Jan 17 '24 06:01 olivervogel

I avoid using PHPStan as the plague. Do you mind if I add-in PHPCS as a dev dependency with a PSR12 standard config?

Do you want to add phpcs additionally or instead of phpstan?

Add it as an additional dev dependency - wouldn't want to impose my workflow setup on you (or anyone else). People who use both - will get both. Others (like me) get to pick a camp 😊 Personally I use VSCode and Intelephpense - with custom phpcs rules.

seebeen avatar Jan 17 '24 13:01 seebeen

Add it as an additional dev dependency

Ok sure. Create a new PR for this if you want.

olivervogel avatar Jan 17 '24 14:01 olivervogel

New PR created - #1275.

seebeen avatar Jan 17 '24 21:01 seebeen

Added the GD trim modifier. Converting this to proper PR, and awaiting your feedback 💪

seebeen avatar Jan 21 '24 16:01 seebeen

I wanted to ask if you still plan to continue here? If you have any questions or uncertainties, please get in touch. If you're no longer interested, that's fine too, of course. I won't ask any more questions and will close the PR.

olivervogel avatar Feb 09 '24 13:02 olivervogel

Heya.

Yes, I do want to continue. I'll aim to finalize by monday.

seebeen avatar Feb 10 '24 01:02 seebeen

@olivervogel any chance to get this merged?

joergmoenke avatar Mar 15 '24 10:03 joergmoenke

@olivervogel any chance to get this merged?

Yes, of course, unfortunately the current status does not yet meet my quality standards. The results with the modifer with the two drivers are too different and sometimes end up with errors. See my comment here: https://github.com/Intervention/image/pull/1271#discussion_r1465112599

olivervogel avatar Mar 15 '24 15:03 olivervogel

I took the basis of @seebeen as a starting point and further developed the feature in this PR. It continues there and I am closing this one.

olivervogel avatar Mar 24 '24 10:03 olivervogel