ImageProcessing::Vips::Processor::Utils
Class methods
apply_strip_compat!(saver_name : String | Nil, options : Hash(String, OptValue), path : String | Nil = nil) : Nil
libvips 8.15 replaced the saver's "strip" boolean with the "keep" flags (empty = keep nothing). Translate the legacy option when the loaded libvips only knows the new one.
select_valid_loader_options(source_path : String, options : Hash(String, OptValue)) : Hash(String, OptValue)
libvips uses various loaders depending on the input format.
select_valid_options(operation_name : String, options : Hash(String, OptValue)) : Hash(String, OptValue)
libvips uses various loaders and savers depending on the input and output image format. Each of these loaders and savers accept slightly different options, so to allow the user to be able to specify options for a specific loader/saver and have it ignored for other loaders/savers, we do some introspection and filter out options that don't exist for a particular loader or saver.