This pull request introduces a new option called variantProcessor for the Active Storage feature. This option allows users to specify the image processing library they want to use, with the default set to vips. The available options are vips and mini_magick.
Changes Made
README.md: Added documentation for the new variantProcessor option.
devcontainer-feature.json: Updated the version and added the variantProcessor option with its type, proposals, and default value.
install.sh: Modified the installation script to check the VARIANTPROCESSOR environment variable and set the appropriate image processor.
Motivation
The variantProcessor in Rails' Active Storage originally supports both vips and mini_magick. However, this feature only supported vips. This PR aims to enhance the functionality by adding support for mini_magick, providing users with more flexibility in choosing their preferred image processing library.
Description
This pull request introduces a new option called
variantProcessor
for the Active Storage feature. This option allows users to specify the image processing library they want to use, with the default set tovips
. The available options arevips
andmini_magick
.Changes Made
variantProcessor
option.variantProcessor
option with its type, proposals, and default value.VARIANTPROCESSOR
environment variable and set the appropriate image processor.Motivation
The
variantProcessor
in Rails' Active Storage originally supports bothvips
andmini_magick
. However, this feature only supportedvips
. This PR aims to enhance the functionality by adding support formini_magick
, providing users with more flexibility in choosing their preferred image processing library.