#11295 NORM 11.3.0: insufficient resources for operation in wikipedia

Zarro Boogs per Child bugtracker at laptop.org
Tue Oct 18 14:28:40 EDT 2011


#11295: insufficient resources for operation in wikipedia
-------------------------------------------+--------------------------------
           Reporter:  carrott              |       Owner:  godiard                          
               Type:  defect               |      Status:  new                              
           Priority:  normal               |   Milestone:  11.3.0                           
          Component:  wikibrowse-activity  |     Version:  Development build as of this date
         Resolution:                       |    Keywords:                                   
        Next_action:  add to build         |    Verified:  0                                
Deployment_affected:                       |   Blockedby:                                   
           Blocking:                       |  
-------------------------------------------+--------------------------------
Changes (by godiard):

 * cc: jnettlet (removed)


Comment:

 Replying to [comment:5 dsd]:
 > Thanks for checking all that. I guess there is no easy solution for the
 planet issue.
 >
 > Do you know of any pages that use a image of type "frame"? The Extended
 image syntax page suggests that you can't apply a size attribute to a
 framed image, which your work does, but after a very brief look I can't
 find any examples to test with.

 There are few (34) images with type "frame" and a defined size. One is the
 first image in the page "Henry Ford". There are also images with type
 "frame" but without size, like in "2004 Indian Ocean Earthquake", the
 first animation in the section "Tsunami characteristics". Is logic do not
 have a size and is not scaled, because wikipedia does not scale animated
 gifs. Both cases are well displayed.

 > Have you tested pages with SVG images? It looks like wikipedia will do
 thumbnails of svg images, but it will present them in PNG format (e.g.
 http://upload.wikimedia.org/wikipedia/en/thumb/c/ce/SVG-logo.svg/500px-
 SVG-logo.svg.png). Your patch will still use <object> to display them when
 actually it should be <img> right?
 >

 The original code (and my patch) exclude the svg images, because in more
 cases the svg image will be smaller than the resulting png. The SVG are
 ok, and you can see it in the Planet page, in the "Orbit" section (just
 over the missing little image). Another example is the first image in
 "Olympic Games" page.

 > Also I can't quite grok the final hunk of your original commit,
 specifically this line:
 > https://dev.laptop.org/git/projects/wikiserver/tree/server.py#n439
 >
 > {{{
 >             self.out.write('<a href="%s">' % url_thumb.encode('utf8'))
 > }}}
 >
 > What does that final 'else' condition represent, and is it definitely
 correct to use the thumbnail rather than the real image as the link target
 here?

 It's true. This is a link then, does not have sense change it. I don't
 know in what conditions the else part can be executed, but was present in
 the code.

-- 
Ticket URL: <http://dev.laptop.org/ticket/11295#comment:6>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list