[Developers] image_thumb bug?

Aseem Mohanty aseem at metaweb.com
Mon Feb 4 19:43:01 UTC 2008


Unfortunately yes. It is a known bug and will be fixed.

Thanks.
AM

Christopher Dummy wrote:
> Ok, you are saying that if it matches one of them, then you return the
> original image? For example, I could be requesting a 100x100 image to
> fit into a 100x100 square. If someone happens to upload an image that
> is 900x100, i will get back the original at 900x100?
> 
> What is the reasoning behind not scaling if one of them matches?
> 
> 
> On Feb 4, 2008 11:35 AM, Aseem Mohanty <aseem at metaweb.com> wrote:
>> 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
>> _______________________________________________
>> Developers mailing list
>> Developers at freebase.com
>> http://lists.freebase.com/mailman/listinfo/developers
>>
> 
> 
> 


More information about the Developers mailing list