[Developers] image_thumb bug?

Christopher Dummy christopher.dummy at gmail.com
Wed Feb 27 19:31:22 UTC 2008


Excellent! I look forward to seeing this on production.

thanks so much,

Christopher


On Fri, Feb 22, 2008 at 8:36 PM, Faye Li <faye at metaweb.com> wrote:
> Hi Christopher,
>
>  To close out this thread, I thought you'd be happy to know that this bug
>  has been fixed on sandbox and will be pushed out to production soon.
>  Using your example, see:
>
>  http://sandbox.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f8000000006b7f347?maxwidth=100&maxheight=300
>  http://sandbox.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f8000000006b7f347?maxwidth=300&maxheight=100
>
>  both of which now correctly return the same as:
>
>  http://sandbox.freebase.com/api/trans/image_thumb/guid/9202a8c04000641f8000000006b7f347?maxwidth=100&maxheight=290
>
>  -- Faye
>
>
>
>
>  Aseem Mohanty wrote:
>  > 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
>  >>>
>  >>>
>  >>
>  >>
>  > _______________________________________________
>  > 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
>



-- 
Christopher Cotton
Zing/Dell Engineer
http://zing.net/


More information about the Developers mailing list