Un motore di ricerca WordPress per sviluppatori e autori di temi



jpeg_quality ›

Da2.5.0
Deprecaton/a
apply_filters( 'jpeg_quality', $quality, 'image_resize' )
Parametri: (2)
  • (int) $quality Quality level between 0 (low) and 100 (high) of the JPEG.
    Richiesto:
  • (string) $context Context of the filter.
    Richiesto:
Definito a:
Codex:

Filters the JPEG compression quality for backward-compatibility.

Applies only during initial editor instantiation, or when set_quality() is run manually without the $quality argument.

set_quality() has priority over the filter.

The filter is evaluated under two contexts: 'image_resize', and 'edit_image', (when a JPEG image is saved to file).



Funzioni correlate: wp_salt, wp_quicktags


Hooks correlati: wp_editor_set_quality

Sorgenti

$quality = apply_filters( 'jpeg_quality', $quality, 'image_resize' );