[Developers] image_thumb bug?
Aseem Mohanty
aseem at metaweb.com
Mon Feb 4 17:35:12 UTC 2008
Hi Christopher,
At this time if either the horizontal scale value /or/ the vertical
scale value is 1 we simply return the original image without processing.
Only if neither them is 1 do we we scale the image.
AM
Christopher Dummy wrote:
> I assume this is a bug, can anyone confirm it?
>
> for this image, if I request a maxwidth of 100 and maxheight of 300, i
> get a 300x300 image, instead of a 100x100 as I expect:
>
>
> http://www.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f8000000006b7f347?maxwidth=100&maxheight=300
>
>
> But, if I change the params to be:
>
>
> http://www.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f8000000006b7f347?maxwidth=100&maxheight=290
>
>
> then I get a correct 100x100 image. It seems a bug happens since it
> matches the exact height with the 300.
>
>
>
> --Christopher
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
More information about the Developers
mailing list