[Developers] image_thumb bug?

Christopher Dummy christopher.dummy at gmail.com
Mon Feb 4 19:07:12 UTC 2008


Great! thanks.

On Feb 4, 2008 1:03 PM, Tim Kientzle <tim at metaweb.com> wrote:
> It's a bug.  We'll fix it.
>
> Tim Kientzle
>
>
> On Feb 4, 2008, at 10:34 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
> >>
> >
> >
> >
> > --
> > Christopher Cotton
> > Zing/Dell Engineer
> > http://zing.net/
> > _______________________________________________
> > 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