humanmade / WPThumb

:warning: UNMAINTAINED :warning: On demand image resizing for WordPress
https://humanmade.co.uk/wpthumb/
170 stars 32 forks source link

Background-fill fail online, but work on localhost #51

Closed Colir closed 11 years ago

Colir commented 11 years ago

Hi, i use this code to place thumbnail of logo centered in a white square <?php the_post_thumbnail( array( 'width' => 160, 'height' => 160, 'background_fill' => '255255255') ) ?>

This work well on my wamp : the logo is centererd in my square without croping and with white space added to fill the square : perfect!

But online, i've only a resize of the image, but the image is not square with whit fill...

How to debug this ?

thanks

joehoyle commented 11 years ago

Hi there,

Background resize is currently only supported by gd, if the server is running off imagemagick (or maybe gmagick) you won't get any background fill.

Colir commented 11 years ago

OK, i've just check the spec of my host, and the gdlib is active.

(from phpinfo) GD Support enabled GD Version bundled (2.0.34 compatible)

Anything else that could break the background fill feature ?

Colir commented 11 years ago

Ok find, it was causing by the use of an old version of the plugin. On my hosting i'm downloaded it from the wordpress plugin directory, and this is not the lastest version. Perhaps it will be great to update the wordpress plugin directory ?

thanks a lot

joehoyle commented 11 years ago

Ahh right yes, we need to update the plugin on the directory asap. Sorry for the confusion