2024-07-28 15:38:12 by Takahiro Kambe | Files touched by this commit (2) | |
Log message:
graphics/ruby-mini-magick: update to 5.0.1
5.0.1 (2024-07-24)
* MiniMagick::Image#write doesn't delete the internal tempfile anymore,
which restores use cases like:
image = MiniMagick::Image.open("...")
image.resize("500x500")
image.write("foo.jpg")
image.blur
image.write("bar.png")
* Prevented MiniMagick::Image#to_ary being called by ruby in certain cases,
such as [image].flatten(1).
|
2024-07-14 09:31:25 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
graphics/ruby-mini-magick: update to 5.0.0
5.0.0 (2024-07-08)
Improvements
* New class method shorthands were added for the tool API:
# BEFORE
MiniMagick::Tool::Convert.new { |convert| ... }
MiniMagick::Tool::Identify.new { |convert| ... }
# ...
# AFTER
MiniMagick.convert { |convert| ... }
MiniMagick.identify { |identify| ... }
# ...
* Image#write now deletes the underlying tempfile if Image.open was used,
instead of relying on the tempfile to eventually be garbage collected.
Backwards compatibility
* Removed official GraphicsMagick support. GraphicsMagick can be used by
setting cli_prefix:
MiniMagick.configure do |config|
config.cli_prefix = "gm"
end
* Some features won't be supported, such as MiniMagick.timeout
(GraphicsMagick doesn't support time limits), Image#data (GraphicsMagick
doesn't support JSON image details) and Image#exif (returns different
format).
As a result, MiniMagick.cli and MiniMagick.processor configuration has
been removed as well.
* MiniMagick::Image and MiniMagick.convert now use magick instead of the
deprecated magick convert on ImageMagick 7. This should be backwards
compatible, but there might be small differences in options and behavior.
* Removed deprecated posix-spawn shell backend, along with
MiniMagick.shell_api configuration.
Ruby 2.x has long used vfork, so there is no performance advantage of
using posix-spawn. Additionally, Ruby 3.x has switched to non-blocking
pipes, which should resolve deadlocks people experienced with Open3. See
#558 for more details.
* Removed obsolete Image#run_command.
* Removed deprecated Image#mime_type, as it wasn't accurate.
MIME type from file content should be determined either using Marcel or
MimeMagic, or mime-types or MiniMime using Image#type.
* The MiniMagick::Tool::* classes have been deprecated in favor of the
class-level interface.
* The MiniMagick.timeout configuration now uses the native ImageMagick
timeout environment variable $MAGICK_TIME_LIMIT. This variable doesn't
support timeouts lower than 1 second.
* The MiniMagick.whiny configuration has been renamed to MiniMagick.errors.
* Images are no longer automatically validated on Image.open, Image.read or
Image.create.
* The deprecated Image#details method has been removed in favor of the more
reliable Image#data.
* The Image#respond_to_missing? method has been removed, meaning that
Image#respond_to? will return false for ImageMagick option methods.
As a result, the undocumented MiniMagick::Tool.option_methods method has
been removed as well, along with the no-op MiniMagick.reload_tools.
* Removed the obsolete MiniMagick.processor_path configuration, which as
mostly an alias for MiniMagick.cli_path.
* Removed the deprecated MiniMagick.debug configuration in favor of
MiniMagick.logger.level = Logger::DEBUG.
* Removed the unused MiniMagick.validate_on_write configuration.
* Additional Pathname#open or URI#open options for Image.open need to be
passed in as keyword arguments instead of a hash.
|
2024-06-15 17:56:17 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
graphics/ruby-mini-magick: update to 4.13.1
4.13.0 (2024-06-13)
* Warnings about convert command being deprecated on ImageMagick 7 are now
ignored.
* The next major version of MiniMagick will switch to using magick on IM7,
as it might not be fully compatible with magick convert.
* If processing images is returning warnings (e.g. TIFF images tend to do
that), but they're otherwise fine, you can prevent MiniMagick from
forwarding warnings to standard error:
MiniMagick.configure do |config|
config.warnings = false
end
* When the ImageMagick subprocess has been abruptly killed by the operating
system (e.g. OOM kill), in which case the exit status will be unknown,
MiniMagick will now handle this gracefully.
* When validating the image, the cheap info will now be automatically stored
on the MiniMagick::Image object, so a subsequent call to #type, #width,
#height, #dimensions, #size or #human_size will not call identify again.
* The posix-spawn shell backend has been deprecated (see #558).
* Ruby uses vfork since Ruby 2.2, so posix-spawn doesn't provide performance
benefits on relevant Ruby versions anymore. Additionally, Ruby 3 switched
to non-blocking pipes by default, which should hopefully resolve deadlocks
with open3 (see #347 and #437). Due to this change, posix-spawn is
currently incompatible with Ruby 3.
* MiniMagick::Image#mime_type has been deprecated, due to returning
incorrect MIME type for formats not starting with image/*.
* ImageMagick does have a way to return the MIME type, but it requires
reading the whole image, which is significantly slower. It's recommended
to use Marcel or MimeMagic for determining MIME type from magic header.
Alternatively, you can use mime-types or MiniMime for obtaining MIME type
from file extension or from MiniMagick::Image#type.
* Ruby 2.3+ is now required.
4.13.1 (2024-06-15)
* Revert an optimization to save an identify call when retrieving image
information by doing this work while validating on create, as this caused
validation to hang for some SVG files.
|
2023-01-15 16:38:07 by Takahiro Kambe | Files touched by this commit (2) | |
Log message:
graphics/ruby-mini-magick: update to 4.12.0
4.12.0 (2022-12-06)
* Added new tmpdir configuration, which defaults to Dir.tmpdir (#541)
MiniMagick.configure do |config|
config.tmpdir = File.join(Dir.tmpdir, "/my/new/tmp_dir")
end
* Don't leave temporary files lying around when MiniMagick::Image#format
failed (#547)
* Replace File.exists? with File.exist?, which should fix Ruby 3.2
compatibility (#550)
* Fixed a case where the log could not be parsed correctly when there were
multiple lines (#540)
* Added status to the exception message when the ImageMagick command fails
(#542)
* Allow passing format to Image#get_pixels so we can request "RGBA" pixels
(#537)
* Suppress warning to ambiguous argument (#529)
* Use Thread#join with a timeout argument instead of the Timeout standard
library (#525)
|
2021-10-26 12:47:26 by Nia Alarie | Files touched by this commit (800) |
Log message:
graphics: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
|
2021-10-07 16:13:27 by Nia Alarie | Files touched by this commit (800) |
Log message:
graphics: Remove SHA1 hashes for distfiles
|
2021-01-11 14:49:37 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
graphics/ruby-mini-magick: update to 4.11.0
4.11.0 (2020-11-06)
* Fix fetching metadata when there are GhostScript warnings (#522)
* Fixed some method redefined warnings (#505)
* Added MiniMagick::Image.get_image_from_pixels (#516)
* extend MiniMagick::Tool#stack to support arguments so that it can be
used with Active Storage
|
2020-03-08 17:00:38 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
graphics/ruby-mini-magick: update to 4.10.1
Update ruby-mini-magick to 4.10.1.
4.10.1 (2020-01-06)
* Still pick up ImageMagick over GraphicsMagick if both are installed
4.10.0 (2020-01-06)
* Prioritize discovery of ImageMagick 7 over 6 if both are installed (@drnic)
* Add MiniMagick::Image#landscape? and #portrait? methods for checking
orientiation (@theomarkkuspaul)
* Fix Ruby 2.7 warnings (@kamipo)
4.9.5 (2019-07-18)
* Fixed MiniMagick::Image.open not working with non-ASCII filenames anymore
after previous version (thanks to @meganemura)
4.9.4 (2019-07-11)
* Fixed a remote shell execution vulnerability when using
MiniMagick::Image.open with URL coming from unsanitized user input (thanks
to @rootxharsh)
* Fixed some Ruby warnings (thanks to @koic)
4.9.3 (2019-04-08)
* make MiniMagick::Tool not respond to everything
|
2018-09-23 17:28:23 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
graphics/ruby-mini-magick: update to 4.9.2
4.9.2 (2018-09-21)
* Fix breakage for MRI 2.3 and below
4.9.1 (2018-09-21)
* Properly handle EXIF parsing with ImageMagick 7
* Show an informative exception message on Timeout::Error
* Wait for the MiniMagick command to terminate after sending SIGTERM with
open3
4.9.0 (2018-09-210
New features
* Support ImageMagick 7
o MiniMagick::Tool::Convert will now generate magick convert commands (and
the same for others)
o MiniMagick::Tool::Magick was added for generating magick commands
* MiniMagick.cli_prefix was added to configure a prefix for commands
MiniMagick.cli_prefix = "firejail"
MiniMagick::Tool::Magick.new { |magick| ... } # executes `firejail magick ...`
Other Improvements
* Fix deadlocks when using posix-spawn as a shell backend
* Fix Errno::ESRCH sometimes being raised when the ImageMagick command would
time out
* #label and #caption will now generate regular options
MiniMagick::Tool::Convert.new do |convert|
# BEFORE: NOW:
convert.label("foo") # label:foo -label foo
convert.caption("bar") # caption:bar -caption bar
end
* Add pango creation operator
MiniMagick::Tool::Magick.new do |magick|
magick.pango("...") # pango:...
# ...
end
* Handle GraphicsMagick returning unknown in EXIF data
|
2017-09-10 16:01:18 by Takahiro Kambe | Files touched by this commit (2) |
Log message:
Update ruby-mini-magick to 4.8.0.
v4.8.0 2017/07/06
* Add options to MiniMagick::Image.open which are forwarded to open-uri when
URL is used (@acrogenesis)
* Fixed MiniMagick::Image#get_pixels not returning all pixels for images that
have first or last bytes that could be interpreted as control characters in
their RGB output (@LAndreas)
|