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

Delegate libvips processing to ImageProcessing gem #29

Closed
wants to merge 1 commit into from

Conversation

janko
Copy link

@janko janko commented Apr 5, 2018

ImageProcessing gem is a wrapper gem around MiniMagick and libvips, which implements common resizing macros. Instead of the carrierwave-vips project having to maintain those macros, it can use the ImageProcessing to do the heavy lifting. The ImageProcessing gem will constantly get updated with best practices for image processing, so any bug fixes and performance improvements there will automatically benefit carrierwave-vips.

The ImageProcessing gem automatically pulls in ruby-vips >= 2.0.10 as a dependency, so we remove it from the gemspec. ImageProcessing uses the improved vips_thumbnail(), so it depends on libvips 8.6+. It also uses vips_autorot() for autorotation.

This PR additionally adds the #resize_to_pad method.

Closes #28
Closes #27
Closes #19

@janko janko force-pushed the replace-with-image_processing branch from 3f5c514 to 50e393d Compare April 5, 2018 18:07
ImageProcessing gem is a wrapper gem around MiniMagick and libvips,
which implements common resizing macros. Instead of the carrierwave-vips
project having to maintain those macros, it can use the ImageProcessing
to do the heavy lifting. The ImageProcessing gem will constantly get
updated with best practices for image processing, so any bug fixes and
performance improvements there will automatically benefit
carrierwave-vips.

The ImageProcessing gem automatically pulls in ruby-vips ">= 2.0.10" as
a dependency, so we remove it from the gemspec. ImageProcessing uses the
improved vips_thumbnail(), so it depends on libvips 8.6+.

This PR additionally adds the `#resize_to_pad` method.
@janko janko force-pushed the replace-with-image_processing branch from 50e393d to 65b74b5 Compare April 5, 2018 18:08
@eltiare
Copy link
Owner

eltiare commented Apr 7, 2018

I'm not using Ruby a whole lot these days. Feel free to use the code to make a new gem with ImageProcessing based on this code.

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.

support auto_rotate
2 participants