Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

image resize on fly #10

Closed meandkareem closed 10 years ago

meandkareem commented 10 years ago

I can't get image to be resized with this tag

<img width="100" height="100" src="{{c.url public_id format=format crop=fill}}" >

Lepozepo commented 10 years ago

Weird, width and height are native to the img tag. Make sure your css isn't messing it up.

meandkareem commented 10 years ago

I think that meteor 0.9 cause this issue. Image is always download at full size. Width and Height parameters are not sent to url .

Lepozepo commented 10 years ago

The image is not served the size you want it because you're not requesting those parameters it inside the helper.Marcelo Reyna

On Mon, Sep 1, 2014 at 3:03 AM, Mile Modic notifications@github.com wrote:

I think that meteor 0.9 cause this issue. Image is always download at full size. Width and Height parameters are not sent to url .

Reply to this email directly or view it on GitHub: https://github.com/Lepozepo/cloudinary/issues/10#issuecomment-54042208

Lepozepo commented 10 years ago

If that doesn't work then the issue would be from this file. https://github.com/cloudinary/cloudinary_js

I'll test when I get a chance.

meandkareem commented 10 years ago

I requested it with

<img width="100" height="100" src="{{c.url public_id format=format width=100 height=100 crop=fill}}" >

but it's not working

Lepozepo commented 10 years ago

Try:

Lepozepo commented 10 years ago
<img src="{{c.url public_id format=format width=100 height=100 crop='fill'}}" >
meandkareem commented 10 years ago

Works! thanks man you rock!