Mike Bijon
Forum Replies Created
-
Forum: Reviews
In reply to: [WP Resized Image Quality] Not working for meHi all. The support thread @zehawk linked to above is resolved. There was a misunderstanding about what 0% & 100% meant, and the plugin worked fine.
I’ll update help text in WP-RIQ, but for wrap-up here:
* 100% setting (aka, 100% quality) ==> Least compression & biggest filesizes
* 0% setting (0% quality) ==> Most compression & smallest filesizesForum: Plugins
In reply to: [WP Resized Image Quality] Not working or what am I missing?Hi @zehawk, sorry to hear this happened to you. As you confirmed, the plugin does work …just that image compression is measured in quality-%’s instead of size-change-%’s. Not always intuitive but it’s how compression has been measured for as long as I’ve been on a computer.
Anyway, for anyone else coming by this thread:
* 100% setting (aka, 100% quality) ==> Least compression & biggest filesizes
* 0% setting (0% quality) ==> Most compression & smallest filesizes—-
WP recently changed its default image compression % to 82%, so I’ll update the default in this plugin & also make note of the meaning of 100->0% in the plugin notes & help text.
Forum: Plugins
In reply to: [WP Resized Image Quality] Tested the plugin but it doesn't do anything@kohiahin,
This plugin should work with the versions of WP and PHP that you posted, as long as your server host has installed the ‘gd’ or ‘imagemagick’ tools on it already.It sounds like you already debugged this. But if you’re still trying or anyone else is looking — this plugin uses the default priority on the image compression hook it sets. Other plugins sometimes use higher priorities or run based on their installation-order. Try disabling all but one image-handling plugin at a time if you’re debugging compression problems.
-Mike
Forum: Reviews
In reply to: [WP Resized Image Quality] Not working for meHi @dano55,
If your site isn’t changing the filesize, then it’s possible that your server host hasn’t installed or turned on a compression library. Here’s a PHP script for seeing if ‘ImageMagick’ is installed, you can probably search for one that will check on ‘gd’ too:
* http://stackoverflow.com/questions/4208253/verify-imagemagick-installationAs for turning off compression entirely:
WordPress’ image compression settings work in reverse. So setting compression to 0 means the MOST compression, but setting it to 100 means NO compression. So add this line of code to your functions.php file (or just set this plugin to compression level 100:add_filter( 'jpeg_quality', 100 );Forum: Reviews
In reply to: [WP Resized Image Quality] Doesn't Work@artsnovadotcom, I’m the dev and would like to resolve this:
I’d like to test this locally and fix if possible. Can you send me a copy of the file you were working with? …either via Dropbox to {my first & last names} gmail.com, or a web link? Also, what what was your compression setting before activating this plugin?
Also, do you know if your server uses the gd or IMagick library? This plugin doesn’t have built-in PNG compression support (nor does WP) unless you’re using IMagick libs are installed & enabled.
Forum: Plugins
In reply to: [WP Resized Image Quality] Different compression for each image sizeHey @casey,
thanks for digging this up again. I haven’t put much time into RIQ lately, but I definitely mean to.Interesting post you have on LQIP (http://www.guypo.com/feo/introducing-lqip-low-quality-image-placeholders/). The loading timelines that show Fios being slow than DSL are a bit odd, but regardless of connection speed this fits the principles of front-end/percieved performance nicely.
THOUGHT on LQIP:
…I am curious if anyone has done selective LQIP for different responsive layouts. One responsive site I built for a client had a responsive breakpoint placed in-between the typical iPad portrait & landscape screensizes. Image quality is important to this client even though they have some corporate load time requirements too.Thus, the client asked that we NOT show the higher-res images on the portrait-sized layout AND not show the low-res images on the landscape layout. As a result, changing orientation appears to reload the page b/c higher-res images load. …seems like a case where LQIP could async load the higher-res images, but not show them. Meeting client-request while still preventing the landscape layout from showing w/o any image at all.
Forum: Plugins
In reply to: [WP Resized Image Quality] Different compression for each image sizeUnderstood, that speedup for budget is why most WP projects are using plugins after all.
I’ll let you know when it’s updated. Do you mind beta testing a bit when I get it that far?
* https://github.com/mbijon/WP-Resized-Image-Quality/issues/4Forum: Plugins
In reply to: [WP Resized Image Quality] Different compression for each image sizeHey @dantz that’s a good idea actually.
Are you using WP’s image sizes for your Retina support? If so, then this is already on the roadmap: I’ve been planning to add image-size options and/or WP filters. That would let thumbnails be set to 50% compression while full-screen images get set at 95%.
OTOH, the plugin is a side-project for me and my roadmap doesn’t have any specific dates. Would you or your client be interested in sponsoring the development of that feature?
Forum: Plugins
In reply to: [WP Resized Image Quality] It doesn't workHi @alduh, would you mind opening a new support thread for this question?
That will help stop us from sending many messages to @master412160. Since he started this thread he would get a copy of all our messages too.
Also, when you re-post would you mind including the following info:
* WordPress version #
* hosting company & plan-type
* Check if you have an admin page at Settings > Image Quality. That’s the 2nd copy of this controlForum: Plugins
In reply to: [WP Resized Image Quality] Does 100% mean, there is no compression?Gotcha. Thanks for building what’s there. Guess I should read more of the Imagick detection code. I could probably wrap that to detect & maybe-enable PNG compression in RIQ.
I tend to generalize in answers on these forums. No blame on WordPress … just easier & faster than being 100% complete & specific.
Forum: Plugins
In reply to: [WP Resized Image Quality] Does 100% mean, there is no compression?Hi Marko, I’ll try to explain 100% JPEG compression better:
* All JPEG images are run through a process that breaks them up into squares of pixels (8×8, 16×16, varies based on quality) and then uses an algorithm to convert each set of pixels from pixel/spatial data into transform/frequency data.
* Converting from pixels to transform info discards some info. Even at 100% quality info is discarded.
Then…
* Each time a JPEG is re-saved, even at 100%, it’s treated as pixel data & re-converted to a transform block-by-block. Thus, more info is discarded each time a 100% JPEG is re-saved.
So, 100% isn’t just the best quality that WordPress can generate, it’s the highest that the JPEG format can manage. And each time something is saved at 100% it gets worse. That’s the concern here.
As for PNG, WordPress doesn’t currently have any code in core for compressing PNGs. There are some libraries that handle PNG compression if you want to install them on your server. I discussed them in this support thread last year: http://ww.wp.xz.cn/support/topic/png-optimisation?replies=13
Forum: Plugins
In reply to: [WP Resized Image Quality] The plugin does not have a valid header.@duffy Bear,
I wasn’t able to reproduce the “plugin doesn’t have a valid header” error, but I did fix the one that happens when the compression-quality is set to 0.I also cleaned-up the SVN tree & changed the encoding of some files (UTF8 instead of Latin/ASCI) … so maybe those will fix something.
The ZIP I linked above is now released as plugin v2.1.1. You can update through wp-admin or download a ZIP from WP.org: http://downloads.wp.xz.cn/plugin/wp-resized-image-quality.2.1.1.zip
Forum: Plugins
In reply to: [WP Resized Image Quality] The plugin does not have a valid header.Duffy Bear,
Do you mind testing a new version of this RIQ plugin for me? I have a new version on Github, https://github.com/mbijon/WP-Resized-Image-Quality/archive/invalid_header_wporg.zipTo Test:
* Deactivate & then delete the current plugin
* Download that ZIP and put the ‘WP-Resized-Image-Quality-invalid_header_wporg’ folder into your server’s /wp-content/plugins/ folder
* Rename that folder to the same as the production plugin: “wp-resized-image-quality”
* Activate this new version of RIQ from the Plugin screen in wp-adminAnything to report, good or bad?
NOTE:
1. – This fixes the ability to set a compression level of ‘0’
2. – I wasn’t able to reproduce the “Invalid Header” error. That could be a conflict between my plugin and another one … or we could get lucky & see it fixed by this version.Forum: Plugins
In reply to: [WP Resized Image Quality] The plugin does not have a valid header.Thanks for the info. That’s not happening on my basic server (a Media Temple shared system) so it’s either die to the fresh install or the specific server config.
I’ll get info on HostGator’s setup tomorrow and give a fix a try.
Will post back here with ZIPs of a test version, if you don’t mind.
Forum: Plugins
In reply to: [WP Resized Image Quality] The plugin does not have a valid header.Duffy Bear, the plugin does work correctly on all the systems I’ve tested it on. If it shows as active then it should be running. A quick test is to reduce image quality to 0 and then upload 1 image — if it’s really pixelated then the plugin is working correctly (just remember to set the quality back to where you want it afterward).
But there’s a new plugin code-filter in WP.org SVN that could have had an impact: http://make.ww.wp.xz.cn/plugins/2013/12/22/notice-svn-will-reject-php-with-errors/
There’s also a chance your server has a very different configuration and I managed to tweak it with an invalid character. Do you happen to know what operating system and/or web host you’re running WordPress on? I can try to find something close to test on if you have that info.