Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [compression]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
1answer
5k views

Set JPEG compression for specific custom image sizes

I use various custom image sizes (by add_image_size) and I have set my JPEG compression to 30% with this filter: function jpeg_quality_callback($arg) { return (int)30; } add_filter('jpeg_quality', ...
6
votes
2answers
530 views

Setting JPEG compression for custom image sizes doesn't work in specific cases

I have a custom image size hello-image: add_image_size( 'hello-image', 700, 300, true ); Whenever an image is uploaded, I compress the cropped hello-image sized image to 40% JPEG compression. It ...
4
votes
3answers
14k views

Page output in strange characters [closed]

Apparently a lot of people complain that they only see random letters and characters: My biggest problem is that I can't reproduce the problem on ANY of my devices! Not on my Windows XP laptop, not ...
3
votes
2answers
443 views

How to Compress PHP output in my plugin?

I never really dug into the compression options I have for my plugins and themes, so here I am. I was reading a few articles about PHP compression like this one and I had a question. Is it really as ...
2
votes
2answers
151 views

Compress WordPress core files ( JS and CSS )

I checked WordPress core files, and I found a lot of uncompressed JS and CSS files. Is there any disadvantage, if I compress these files using YUI-Compressor? Secondary question: Why didn't compress ...
2
votes
2answers
197 views

Add Additional File Info (jpeg compression & file size) settings to Edit Images Screen

On the WordPress Edit Image Screen, I'd like to add a label to show the current compression level and byte file size of the image. Any ideas how to tap into this screen and echo this data? The ...
2
votes
2answers
211 views

Wordpress DB: options-table –> 32 gzipcompression?

I just wondered what this row in the Wordpress Database refers to? 32 gzipcompression 0 I stumbled upon it in the WP options table. What if I set the value to 1. I do already have gzipcompression ...
2
votes
1answer
1k views

Minify HTML, CSS, JS with PHPWee?

I want to use PHPWee to minify my site HTML, CSS and JS. Below is the code that I modified it from here: class WP_HTML_Compression { // Settings protected $compress_css = true; protected ...
2
votes
1answer
2k views

How to set the jpg image compression for specific thumbnail sizes?

This question was asked on Set JPEG compression for specific custom image sizes and answered very nicely by Ahmad M I'd of course comment to that thread but I don't have 50 point reputation... The ...
2
votes
2answers
5k views

How do I edit the htaccess file to optimize my website?

Hi I have tried to optimize my website energyshop.se for a cpl of days but I cant seem to get it done. This is how my .htaccess looks like: Header unset ETag FileETag None # Hantera och redirecta ...
1
vote
3answers
1k views

Image Quality Thumbnail Compression in Wordpress?

I’m lost I don’t know where to turn. I am trying to get my thumbnails to NOT be compressed at all. My uploads are nice and colorful, but the thumbnails gets very visibly duller and poorer quality. I ...
1
vote
1answer
17 views

Media Gallery Upload Thumbnail Compression is Changing Image Hue

When I upload an image to my media gallery, all the image sizes that are generated are discolored. Here's an example. This is the full-size image: And now here is one of the smaller image sizes: ...
1
vote
1answer
2k views

Wordpress REST API json - How to activate gzip compression?

Im currently trying to activate the gzip compression on a Wordpress website. But the json output of the wordpress embed api doesn't seem to be affected by my htaccess settings. Here they are: <...
1
vote
1answer
480 views

Enabling compression in .htaccess file is causing 500 internal error

This is the code I am adding to my .htaccess file for compression and browser caching and gzip. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^...
1
vote
1answer
513 views

How to change compression of Wordpress uploads including original image

We are currently using this to change the compression used on jpgs when uploaded to the WP media library: add_filter(‘jpeg_quality’, function($arg){return 75;}); However, this does not compress the ...
1
vote
1answer
422 views

How to keep WP from recompressing Full Size images

I have noticed that WP does have the bad habit of recompressing Full Size images during uploads. I mean, it does make sense creating several smaller versions of each uploaded image, applying a default ...
1
vote
0answers
100 views

Make Wordpress compress full size image?

Regardless of size uploaded, I need Wordpress to compress the original full size image to 30% upon upload. Full size is the only image I use. I have already disabled all thumbnail creation upon ...
1
vote
0answers
6k views

ERR_CONTENT_DECODING_FAILED: How to fully delete gzip compression plugins?

I disabled plugins by: UPDATE wp_options SET option_value = '' WHERE option_name = 'active_plugins'; and also renaming the plugins folder to something else. I am still getting: This site can’t be ...
1
vote
0answers
3k views

Google PageSpeed Enable Compression isn't working?

I am trying to improve pagespeed of my website. When I test my site it tells "Compressing https://z-1-static.xx.fbcdn.net/rsrc.php/v2/yF/r/SQ7jeOqw5xW.js could save 188.3KiB (70% reduction)." I have ...
1
vote
0answers
85 views

Image increasing kb on resize

I'm trying to compress an image on upload, but it turns out that wordpress is creating 7 more copies of the image and one of the its more large in kb than the original one. (original has 15kb, resized ...
0
votes
2answers
129 views

Theme compression/ minifying or W3 Total Cache - which should I use? [closed]

I run a WP3.x Multisite setup. One of the themes I use on a site has options for minifying, using Gzip compression and using data URIs for images (not sure what the latter function is or does). In the ...
0
votes
1answer
111 views

Cannot access my wp-admin after installing Gzip compression [closed]

I have installed a WP Plugin called Gzip Compression to increased the speedpage and had an awful surprised: have no access to the website at all, giving me an error of invalid form of compression, and ...
0
votes
3answers
1k views

Google Page Speed Insights - Optimize Images

The top recommendation from Google Page Speed Insights is to optimize & compress images. How do I do that? It lists dozens of images and that would be practically impossible to do it all manually. ...
0
votes
2answers
5k views

“load-scripts.php” hangs and times out when plupload is requested

I have a perplexing problem with Wordpress. When pages under /admin/ loads "load-scripts.php" with "plupload" as one of the arguments, it hangs for ever. The "Add New Post" page is one such page. For ...
0
votes
1answer
666 views

Autogenerated Thumbnail compression depending on size

This is a follow up to this question, in witch the jpg compression is altered depending on what WP's built-in image resulting image size returns. While it may work for most of the people, i'm looking ...
0
votes
2answers
30 views

Stop WordPress compressing images? – Quality is terrible

I understand WordPress creates smaller versions of the original image file. These versions are blurry in comparison to the original which is a big issue as a photographer. I set up this page you can ...
0
votes
1answer
319 views

Is wordpress compressing my images? if so, how to prevent it?

I am using 'featured image' fields in my post and the images are sized and compressed already but whenever I upload an image that has some text, I keep noticing the image reduced in quality (...
0
votes
1answer
13 views

Enable compression

I am trying to make Enable compression 100% for my website speed optimization but I can not get the result. I tried plugins: Autoptimize, w3 total cache, wp rocket, clean cache, and others. The web ...
0
votes
0answers
32 views

Compressing thumbnails

I am in the process of setting up a new site, and I would really avoid using plugins more then necessary. My problem now are media sizes. I am alsways compressing the images I upload beforehand, but ...
0
votes
0answers
22 views

Alternative image sizes are too large

Very new to WordPress here so still learning a lot so if anything I say here is silly then please go easy on me 😉 On a site I've created I'm using this plugin here : https://wordpress.org/plugins/...
0
votes
1answer
38 views

Run function before uploaded image is saved

I wish to run the following ImageMagick command before each image is saved to the server, how can I do so: convert image_name.jpg -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace ...
0
votes
1answer
48 views

No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file

I'm attempting to perform some basic jpeg compression by using the jpeg_quality hook inside my functions.php file but there is no compression/resizing taking place. I'm only measuring file compression ...
0
votes
1answer
206 views

How to use lossless compression with WP_Image_Editor

I am using WP_Image_Editor through the Timber plugin and it's TimberImageHelper class. In my theme code I have: TimberImageHelper::resize($path,$w,$h,$cropArea);, which eventually (after various ...
-3
votes
1answer
101 views

What does the output of this plugin mean? [closed]

I just tried to compress a file and am not sure if it worked or not. The plugin I am using gave me the following results: adding: wp-includes/js/tinymce/plugins/wpeditimage/editimage.html (deflated ...