Yes, there is actually a filter hook to change JPEG compression ratio. You could add these lines to your functions.php:
add_filter( 'jpeg_quality', 'jpeg_custom_quality' );
function jpeg_custom_quality( $quality ) {
return 70;
}
You may change 70 to whatever value you want.
Related Posts:
- How can you set maximum width for original images?
- WordPress Image Editor not working – conflict?
- Image dimensions same as image size
- Best image hosting service
- Filter what image sizes get generated
- Media > Image Sizes aren’t being applied to uploads
- add_image_size landscape or portrait
- Front end wp_editor not rendering audio/video links
- Force WordPress, themes & plugins into using defined sizes
- WordPress Media Image Manager — Creating Lots and Lots of Odd Sized Images
- Large image size stuck on old value, even for new images
- Rotating image does not work for custom image sizes
- Link to resized media file
- Editing image dimension – to edit the main image file
- Force image crop size in media editor
- Set Maximum Width for an uploaded image
- When inserting an image in a post, how to link the image to a resized URL instead of the full image URL?
- How do I get WordPress to create resizes of a supplied default image in a theme?
- TwentySeventeen $content_width not updated in admin
- Insert Link to Audio versus Embed Audio Player
- How to resize image in wordpress from backend? Seems like bug in wordpress
- Hide download button from audio player
- Only current gallery images with get_attached_media
- Custom image sizes
- Pre populate WordPress wp_media modal with image selection
- wp.media.view.ImageDetails – Save settings as HTML5 data-* attributes for image
- Delete an attachment in the WP media modal window
- Upload images to remote server
- Add media with WP-Rest-API v2
- How would I go about listing only unattached media in say a sidebar?
- How to reduce original image quality on upload?
- Filter Media Library by author or post_parent
- Restrict the number of images to upload per post
- Restricting access to files within a specific folder [duplicate]
- Image size filtering in Media uploader according to custom post type
- Plugin to download attached media files?
- How to upload imagick resource to media in wordpress
- How to store media files in subdomain
- Change WordPress’ media upload URL?
- Disable edit option in Media library
- Multisite media library uploads broken images
- How do I create a full-bleed background image on text mouseover? [closed]
- Media is shown in listview but not in gridview whenever i activate my Custom Theme
- Different upload path per file type
- Generated media have incorrect aspect ratio
- What is the structure of the “Featured Image” field in the DB?
- Find unused images?
- Add instructions For Media Library Uploads
- Site migration – some images not displaying in Media Library
- Finding a media attachment post ID from a URL
- Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working
- wp-cli post create & media import issues
- Allow downloading unusual file types
- Is it possible to change filenames in media library after upload?
- Change wp-content/uploads to uploads/%postname%/%image%
- Upload video in custom folder
- Media Library not showing images but still acknowledges existence
- Moving media library to the media library of completely different site
- RSS audio enclosures have length of zero (podcast duration is missing)
- Upload media only to DB
- Is there a way in WordPress to convert images to WebP without a plugin?
- How to programatically toggle the media setting “Organize my uploads into month- and year-based folders”?
- Unable to add logo or header [closed]
- Admin edit S3 Media file?
- Disable image rename on upload
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- image URL changed in wordpress
- Attaching images to multiple galleries
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- Specific folder and no thumbnail generation for media_sideload_image
- Whats wrong with my wp gallery?
- Site/Post preview is not working on all social media
- WordPress append -1 to the image name
- Pre-load images into a new users media gallery
- Getting image data from phone camera (MediaDevices.getUserMedia) into user post
- Updated wordpress missing image upload area
- WP REST API Create media return Timeout Gateway in response, but media created
- Creating multiple instances of Media Uploader
- Handle image file and save it to media
- Change behavior of the “ADD Media” buttom
- Set default “Link CSS Class” in add media admin editor
- Disable wordpress gif compression?
- wordpress doesnt add media.css file
- Change default ‘file not supported’ error message
- Modify media file markup output
- How to create different media uploader frames / filter library depending on a custom action
- Extra metadata for media items
- Customize WordPress Upload Directory
- Elegant way to signify inheritance and relationship between posts
- Media Player gone on front end
- Why does uploading a media file a second time restore older version?
- add file name column to media library to sort by
- Set padding for all content except images and few more elements
- Change image link in excerpt to point to post
- Cache of site on browser
- WordPress API, creating Featured Media from image url (nodejs)
- Uploading media to wordpress API with C# HttpClient
- Looking for a way to insert PDF image preview in TinyMCE
- Media Library Issues
- This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading