modxcms/pThumb

Scaling up/down to exact size

gibbs opened this issue · 1 comments

gibbs commented

I'm trying to scale images both up/down to meet specific dimensions. I thought zoom crop did this. For example an image that is 140x245 that should be scaled up to 325x445

<img src="[[pthumb? &input=`/shared/images/offers/[[+thumbnail]]` &options=`&w=325&h=445&aoe=1&q=100`]]" />

Results in 254x445

<img src="[[pthumb? &input=`/shared/images/offers/[[+thumbnail]]` &options=`&w=325&h=445&zc=1&q=100`]]" />

Results in 129x313

<img src="[[pthumb? &input=`/shared/images/offers/[[+thumbnail]]` &options=`&w=325&h=445&iar=1&q=100`]]" />

Results in 325x445 but undesirable as not proportionate.

<img src="[[pthumb? &input=`/shared/images/offers/[[+thumbnail]]` &options=`&w=325&h=445&far=1&q=100`]]" />

Results in 254x445.

Am I missing something? I've tried a mixture of combinations involving aoe, far, iar and zc but no improvements.

gibbs commented

When using resizer this works so closing.