7 use CXGN
::DB
::Connection
;
10 use CatalystX
::GlobalContext
'$c';
14 my $image_id = $q->param("image_id");
15 my $size = $q->param("size");
17 my $image = SGN
::Image
->new( undef, $image_id, $c );
19 my $html = $image->get_img_src_tag($size);
21 print "Content-Type: text/plain\n\n";
22 print to_json
({ html
=>$html });
27 print "Content-Type: text/plain\n\nerror: $@\n\n";