We're Hiring!

OMERO.web Image Render

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

OMERO.web Image Render

Postby icaoberg » Tue Mar 01, 2011 6:44 pm

I am trying to generate a thumbnail and link to the original image. In HTML the code is

Code: Select all
<a href="http://omepslid.compbio.cs.cmu.edu/webgateway/render_image/4628/0/0"><img src="http://omepslid.compbio.cs.cmu.edu/webgateway/render_thumbnail/4628/100" /></a>


I want to generate a template using this example. But it is not working. The code I have is
Code: Select all
<a href="{% url webgateway.views.render_image i.id 0 0 %}">
<img src="{% url webgateway.views.render_thumbnail i.id %}" /></a>
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: OMERO.web Image Render

Postby cxallan » Tue Mar 01, 2011 8:56 pm

Sorry, not working how?
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: OMERO.web Image Render

Postby wmoore » Wed Mar 02, 2011 1:20 pm

What do you see when you go to this url?
Code: Select all
http://omepslid.compbio.cs.cmu.edu/webgateway/render_thumbnail/4628/100


You may want to check that you have debug turn on:

Code: Select all
$ bin/omero config set omero.web.debug True
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: OMERO.web Image Render

Postby icaoberg » Wed Mar 02, 2011 8:38 pm

it worked after i restarted omero.web

i am not sure what was the problem.

ivan
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA


Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 0 guests