Saves an image stored as an array to a path or file object.
image_array_save(
x,
path,
data_format = NULL,
file_format = NULL,
scale = TRUE,
...
)
Called primarily for side effects. The input x
is returned,
invisibly, to enable usage with the pipe.
An array.
Path or file object.
Image data format, either "channels_first"
or
"channels_last"
.
Optional file format override. If omitted, the format to use is determined from the filename extension. If a file object was used instead of a filename, this parameter should always be used.
Whether to rescale image values to be within [0, 255]
.
Additional keyword arguments passed to PIL.Image.save()
.
Other image utils:
image_from_array()
image_load()
image_smart_resize()
image_to_array()
op_image_affine_transform()
op_image_crop()
op_image_extract_patches()
op_image_hsv_to_rgb()
op_image_map_coordinates()
op_image_pad()
op_image_resize()
op_image_rgb_to_grayscale()
op_image_rgb_to_hsv()
Other utils:
audio_dataset_from_directory()
clear_session()
config_disable_interactive_logging()
config_disable_traceback_filtering()
config_enable_interactive_logging()
config_enable_traceback_filtering()
config_is_interactive_logging_enabled()
config_is_traceback_filtering_enabled()
get_file()
get_source_inputs()
image_dataset_from_directory()
image_from_array()
image_load()
image_smart_resize()
image_to_array()
layer_feature_space()
normalize()
pad_sequences()
set_random_seed()
split_dataset()
text_dataset_from_directory()
timeseries_dataset_from_array()
to_categorical()
zip_lists()