Questions tagged [compression]
The compression tag has no usage guidance.
43
questions
0
votes
1
answer
376
views
Disable gzip on WordPress
I can see WordPress enables Gzip compression on the site
I disabled all plugins to ensure that no plugin enabled that
And also I created a simple php script and it doesn't enable gzip by default by ...
1
vote
0
answers
58
views
Blurry images when using add_image_size with crop
I've got the following image size: add_image_size( 'medium-thumb', 350, 350, true );
The images generated using the code snippet above are heavily compressed and turn blurry.
This is the original ...
0
votes
1
answer
21
views
Wordpress built-in compression of images? How well does it compare to Photoshop or Shortpixel?
I think the quiestion is pretty straight forward.
I have around 5000 images I want to upload. I need to compress them somehow, but how?!
Photoshop compression
or
use the built-in compression of new ...
0
votes
0
answers
119
views
Gzip compression or Mod_deflate not working
Our wordpress website we need to enable gzip compression we followed below instruction to enabled.
we have wp rocket plugin this plugin automatically added compression mode_deflate lines in .htaccess
...
1
vote
0
answers
27
views
Restrict media upload size by format
I'm looking for a way to restrict the size of the media when uploading (a plugin or just a function).
So I found this:
function increase_upload_size_limit( $limit ) {
return 524288;
}
add_filter( '...
1
vote
1
answer
69
views
Custom Plugin - Package and Deployment Solutions
We are a very small company working with a specific customer base. In this, we often have to create small WP plugins specific to the customer. Typically, we re-use our own basic folder structure and ...
0
votes
0
answers
14
views
Having an issue in compressing Images in wordpress site
I am having a trouble in getting my images to be compressed. Can images be automatically compressed? Is there any other solution for images compressing because its increasing my technology rental ...
0
votes
2
answers
37
views
Advice on image heavy site, compression and slow page loads
I have a videogame fansite. By its nature it's image intensive.
No matter how I capture the images, process them, run them through compression plugins like Smush or standalone software, I cannot ...
1
vote
1
answer
144
views
Disable all resizing and compression
How do you successfully disable all image compression and resizing?
I would like Wordpress to use the image exactly as it is uploaded. same pixel dimentions, same quality.
I have gone down the route ...
0
votes
3
answers
214
views
Should I not compress my jpeg files before uploading to avoid double compression?
Wordpress compresses jpeg files to a lvl 82 quality. Should I upload my files in 100 quality to avoid double compression? Or will Wordpress know the file is already compressed and will skip this ...
0
votes
1
answer
172
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
2
answers
552
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 ...
2
votes
1
answer
293
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
3
answers
4k
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
1
answer
3k
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
0
answers
146
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 ...
0
votes
0
answers
26
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
1
answer
40
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 ...
6
votes
2
answers
899
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 ...
2
votes
1
answer
2k
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
2
answers
281
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 ...
1
vote
1
answer
539
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 ^...
0
votes
1
answer
89
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 ...
1
vote
0
answers
8k
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 ...
0
votes
1
answer
369
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 ...
1
vote
0
answers
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
1
answer
961
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 ...
0
votes
1
answer
122
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 ...
1
vote
0
answers
88
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
3
answers
2k
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
2
answers
6k
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
1
answer
339
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 (...
2
votes
1
answer
3k
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
2
answers
237
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
2
answers
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 ...
2
votes
2
answers
226
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 ...
9
votes
1
answer
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', ...
1
vote
1
answer
492
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 ...
0
votes
2
answers
134
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 ...
-3
votes
1
answer
105
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 ...
3
votes
3
answers
18k
views
strange characters in wordpress website displayed for visitors [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 ...
2
votes
1
answer
755
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 ...
3
votes
2
answers
592
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 ...