image_processing icon indicating copy to clipboard operation
image_processing copied to clipboard

allow resize_to_fill to skip cropping #74

Open etherbob opened this issue 4 years ago • 3 comments

Adds the ability to pass crop: false to MiniMagick#resize_to_fill per #74

Unfortunately, I could not figure out a way to make this to work the same on the vips side.

etherbob avatar Nov 20 '20 18:11 etherbob

Looks like libvips isn't available on the travis servers. Do I need to do something special to get the build working again?

etherbob avatar Nov 25 '20 18:11 etherbob

@janko is there anything I can do to fix the build and get this back on track? My apologies if I'm missing something, I have not directly sent a PR before.

etherbob avatar Dec 08 '20 17:12 etherbob

Thanks for the pull request, and sorry for letting it fall off my radar. On master I've migrated from Travis CI to GitHub CI, so that should be passing once this branch is updated.

In general I agree the option of this kind of resizing should be there, and after some consideration I think I agree with overloading #resize_to_fill. We'll just need to do the same thing for the vips backend for consistency, and also update the documentation.

janko avatar Sep 26 '21 08:09 janko

Just noticed that we both tacked the same problem. I managed to get it to work in both IM and VIPS but I created a seperate method cover: https://github.com/janko/image_processing/pull/75

brendon avatar Apr 19 '24 09:04 brendon

closing in favor of #120 120

etherbob avatar Apr 25 '24 17:04 etherbob