Re: [google-appengine-go] "code.google.com/p/appengine-go/example/moustachio/resize" panic

30 views
Skip to first unread message

David Symonds

unread,
May 23, 2013, 1:31:16 AM5/23/13
to darkte...@gmail.com, google-ap...@googlegroups.com, Nigel Tao
I'm not too surprised. That's some old demo code. Maybe Nigel will be
interested in fixing it up.

Nigel Tao

unread,
May 29, 2013, 3:04:42 AM5/29/13
to darkte...@gmail.com, google-ap...@googlegroups.com
On Thu, May 16, 2013 at 3:55 PM, <darkte...@gmail.com> wrote:
> when I run:
>>
>> resize.Resize(srcimg2, image.Rect(0, 0, 100,100), 3000, 3000)
>
> It goes OK.
>
> when I run:
>>
>> resize.Resize(srcimg2, image.Rect(1, 1, 200, 200), 3000, 3000)
>
> It panic,

If you import "fmt" and "os" and add

fmt.Fprintf(os.Stderr, "\n\n\nsrcimg2 has type %T and bounds
%v\n\n\n", srcimg2, srcimg2.Bounds())

then you should see some debug information in the console where you
run your dev_appserver. Can you copy/paste that output here?
Reply all
Reply to author
Forward
0 new messages