humanmade / WPThumb

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

resizing to absolute dimensions and copping howto? #41

Closed geovais closed 11 years ago

geovais commented 11 years ago

I want to resize a photo so to take a maximum width and if the height is bigger than my maximum height do a cropping. I use WP 3.42.

I use the code

src="'.wpthumb($myimg,'width=780&height=358&resize=true&crop=1&crop_from_position=center,center&background-fill=solid'"/>';

The dimensions of produced photo are 780 x 550 and it does not seem to do the crop

joehoyle commented 11 years ago

this might be somethign to do with the "background-fill=solid", why are you using that option here?

geovais commented 11 years ago

Hi Joe

I removed this option and now my function became

echo '';

I removed all files from cache folder and refresh my page but it does not seem to do something different

From: Joe Hoyle [mailto:notifications@github.com] Sent: Wednesday, December 05, 2012 4:47 PM To: humanmade/WPThumb Cc: geovais Subject: Re: [WPThumb] resizing to absolute dimensions and copping howto? (#41)

this might be somethign to do with the "background-fill=solid", why are you using that option here?

— Reply to this email directly or view it on GitHub https://github.com/humanmade/WPThumb/issues/41#issuecomment-11043877 .

https://github.com/notifications/beacon/PQ0X01elcyBv25oChzO2emf6N46amRT5p76KVKuerKN5_SawHpmkQ5zaatXRuaYr.gif

joehoyle commented 11 years ago

Could you send me the image you are trying to resize here?

Joe Hoyle Managing Director humanmade

Human Made Limited 53 Yeomans Street, Bonsall, Derbyshire, England DE4 2AA

e joe@humanmade.co.uk (mailto:joe@humanmade.co.uk) t +44 (0) 7891 685613 (callto:+447891685613) skype joe-hoyle (callto:joe-hoyle) w humanmade.co.uk (http://humanmade.co.uk/)

On Wednesday, 5 December 2012 at 14:57, geovais wrote:

Hi Joe

I removed this option and now my function became

echo '';

I removed all files from cache folder and refresh my page but it does not seem to do something different

From: Joe Hoyle [mailto:notifications@github.com]
Sent: Wednesday, December 05, 2012 4:47 PM
To: humanmade/WPThumb
Cc: geovais
Subject: Re: [WPThumb] resizing to absolute dimensions and copping howto? (#41)

this might be somethign to do with the "background-fill=solid", why are you using that option here?


Reply to this email directly or view it on GitHub https://github.com/humanmade/WPThumb/issues/41#issuecomment-11043877 .

https://github.com/notifications/beacon/PQ0X01elcyBv25oChzO2emf6N46amRT5p76KVKuerKN5_SawHpmkQ5zaatXRuaYr.gif

— Reply to this email directly or view it on GitHub (https://github.com/humanmade/WPThumb/issues/41#issuecomment-11044290).

geovais commented 11 years ago

The photo is attached to this mail

From: Joe Hoyle [mailto:notifications@github.com] Sent: Wednesday, December 05, 2012 5:00 PM To: humanmade/WPThumb Cc: geovais Subject: Re: [WPThumb] resizing to absolute dimensions and copping howto? (#41)

Could you send me the image you are trying to resize here?

Joe Hoyle Managing Director humanmade

Human Made Limited 53 Yeomans Street, Bonsall, Derbyshire, England DE4 2AA

e joe@humanmade.co.uk (mailto:joe@humanmade.co.uk) t +44 (0) 7891 685613 (callto:+447891685613) skype joe-hoyle (callto:joe-hoyle) w humanmade.co.uk (http://humanmade.co.uk/)

On Wednesday, 5 December 2012 at 14:57, geovais wrote:

Hi Joe

I removed this option and now my function became

echo '';

I removed all files from cache folder and refresh my page but it does not seem to do something different

From: Joe Hoyle [mailto:notifications@github.com] Sent: Wednesday, December 05, 2012 4:47 PM To: humanmade/WPThumb Cc: geovais Subject: Re: [WPThumb] resizing to absolute dimensions and copping howto? (#41)

this might be somethign to do with the "background-fill=solid", why are you using that option here?

— Reply to this email directly or view it on GitHub https://github.com/humanmade/WPThumb/issues/41#issuecomment-11043877 .

https://github.com/notifications/beacon/PQ0X01elcyBv25oChzO2emf6N46amRT5p76KVKuerKN5_SawHpmkQ5zaatXRuaYr.gif

— Reply to this email directly or view it on GitHub (https://github.com/humanmade/WPThumb/issues/41#issuecomment-11044290).

— Reply to this email directly or view it on GitHub https://github.com/humanmade/WPThumb/issues/41#issuecomment-11044397 .

https://github.com/notifications/beacon/PQ0X01elcyBv25oChzO2emf6N46amRT5p76KVKuerKN5_SawHpmkQ5zaatXRuaYr.gif

joehoyle commented 11 years ago

Could you sent teh file directly to joe [at] humanmade.co.uk, GitHub email is stripping the image

Thanks

joehoyle commented 11 years ago

After some discussion, it turns out this was for resizing images UP, which wpthumb does not do