.. _auto_physicaltest_compress_image: *COMPRESSES IMAGES* =================== Compresses image attachments associated with one or more physical tests in d3VIEW, reducing file size by applying a configurable quality level to selected image formats. Use this worker to free up storage or speed up report rendering by shrinking large JFIF, PNG, JPG, or JPEG files attached to test records. When to use ----------- Tagged: ``attachments``, ``image_compression``, ``jfif``, ``jpeg``, ``jpg``, ``physical_test``, ``png``, ``storage_optimization``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Physicaltest - physicaltest_id - remote_lookup - — - ✓ - One or more physical test record IDs whose image attachments will be compressed; at least one test must be supplied or the worker will raise an error. * - Quality - quality - scalar - 40% - ✓ - Target compression quality expressed as a percentage (e.g. '40%'); lower values produce smaller files with reduced image fidelity — default is '40%'. * - Replace - replace - select - no - ✓ - Whether to overwrite the original image files in-place ('yes') or keep the originals alongside the compressed copies ('no') — default is 'no'. * - Compress for these Extensions - extensions - select - jfif - ✓ - Image file extensions to target for compression; one or more of JFIF, PNG, JPG, JPEG may be selected — default is 'jfif'. * - Min Size in MB - min_size - scalar - 0 - ✓ - Minimum file size threshold in MB; only images strictly larger than this value will be compressed — set to '0' (default) to compress images of any size. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - Physicaltest Id - physicaltest_id - integer - Integer ID(s) of the physical test record(s) that were processed, passed through unchanged so downstream workers can reference the same tests. Disciplines ----------- - data.dataset.ingest - data.io.file - platform.integration .. raw:: html
Auto-generated from platform schema. Worker id: physicaltest_compress_image. Schema hash: 2ff82eb45776. Hand-curated docs in workerexamples/ override this page when present.