tensorflow / 2.9.1 / raw_ops / encodejpegvariablequality.html /

tf.raw_ops.EncodeJpegVariableQuality

JPEG encode input image with provided compression quality.

image is a 3-D uint8 Tensor of shape [height, width, channels]. quality is an int32 jpeg compression quality value between 0 and 100.

Args
images A Tensor of type uint8. Images to adjust. At least 3-D.
quality A Tensor of type int32. An int quality to encode to.
name A name for the operation (optional).
Returns
A Tensor of type string.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/raw_ops/EncodeJpegVariableQuality