<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>13502</bug_id>
          
          <creation_ts>2007-04-26 08:46:17 -0700</creation_ts>
          <short_desc>image scaling/placement problem, viewBox related</short_desc>
          <delta_ts>2009-12-30 11:03:58 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.carto.net/neumann/webkitsvgbugs/image_placement_problem.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>SVGHitList</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Neumann">a.neumann</reporter>
          <assigned_to name="Rob Buis">rwlbuis</assigned_to>
          <cc>krit</cc>
    
    <cc>rindahl</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12350</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Neumann">a.neumann</who>
    <bug_when>2007-04-26 08:46:17 -0700</bug_when>
    <thetext>In this example the raster image is incorrectly placed (scaled/positioned). The green outline of Switzerlands border in the raster image should roughly match the orange vector outlines of Switzerland. Also compare to other viewers (Opera, Batik, ASV, Firefox) to see the correct rendering.

The same behavior can be seen at this URL: http://www.geofoto.ch/geophotomap/ or other similar applications. It seems to be viewBox related when the viewBox has large width/height values set in the viewBox attribute. Interestingly, vectors display correctly, but rasters don&apos;t.

Please contact if you need further examples/information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8565</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-06-01 03:25:10 -0700</bug_when>
    <thetext>It would be nice to have a simpler example.  But something definitely seems a little wrong here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7897</commentid>
    <comment_count>2</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2007-06-11 17:49:15 -0700</bug_when>
    <thetext>The bug is only visable for certain window sizes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4944</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Rindahl">rindahl</who>
    <bug_when>2007-07-12 11:13:45 -0700</bug_when>
    <thetext>You can see the issue clearly if you load the URL.  The SVG and image will fill the browser window.  Resize the Safari window and slowly resize the entire window from small to large.  The vector graphics will maintain the correct location but the image will gradually distort and then even jump radically to a new scale.  This is occuring in every SVG display with an image that I have tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4710</commentid>
    <comment_count>4</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2007-07-14 16:23:49 -0700</bug_when>
    <thetext>Finally got some time to look at this bug.

Thanks Bruce for the good explaination. I&apos;m now fully aware of this bug.
I never looked close enough it seems :-)

Greetings,
Niko</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4536</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Rindahl">rindahl</who>
    <bug_when>2007-07-17 07:32:21 -0700</bug_when>
    <thetext>The really strange thing is first the images is distorted in horizontal direction, then after the jump the distortion is in the vertical direction.  Again this is reproducible in every SVG I have.  It is almost as if the screen to image pixel ratio is an integer instead of a float causing first the distortion then the jumps.  This doesn&apos;t explain the distortion occurring first horizontally then vertically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57154</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-09-27 07:25:07 -0700</bug_when>
    <thetext>It would appear this is still broken on feature branch.  It definitely looks like an int v. float issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57182</commentid>
    <comment_count>7</comment_count>
    <who name="Andreas Neumann">a.neumann</who>
    <bug_when>2007-09-27 10:54:43 -0700</bug_when>
    <thetext>it would be really cool if this could be fixed for the final version of Webkit. Many of my examples are using the same method and wouldn&apos;t work well if this bug isn&apos;t fixed in the final version.

Thanks for having a look at this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65366</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-27 01:52:14 -0800</bug_when>
    <thetext>This is one of several right-sizing issues we have in WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68584</commentid>
    <comment_count>9</comment_count>
    <who name="Bruce Rindahl">rindahl</who>
    <bug_when>2008-01-29 08:09:17 -0800</bug_when>
    <thetext>Has there been any progress on this issue?  There has been lots of great addtions to SVG in WebKit but my sites look kind of silly where the images and vectors don&apos;t line up.  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75818</commentid>
    <comment_count>10</comment_count>
    <who name="Bruce Rindahl">rindahl</who>
    <bug_when>2008-03-30 07:01:25 -0700</bug_when>
    <thetext>tickle</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81787</commentid>
    <comment_count>11</comment_count>
    <who name="Bruce Rindahl">rindahl</who>
    <bug_when>2008-05-28 14:50:34 -0700</bug_when>
    <thetext>I am sorry but I have to ask again on this bug.  It has been over a year now and apparently there has been no progress.  I have a published site in SVG that shows floodplains (vectors) overlaid on aerial photos to show if a property is in the floodplain.  I cannot depend on any WebKit based browser to show this accurately due to this bug.  We will soon be forced to add a note not to use any WebKit browser because our logs are showing more and more hits by Safari.  Please look into this.
Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81797</commentid>
    <comment_count>12</comment_count>
    <who name="Andreas Neumann">a.neumann</who>
    <bug_when>2008-05-28 15:06:19 -0700</bug_when>
    <thetext>same problem for me - I would really appreciate if this could be fixed soon.

Thank you very much!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83434</commentid>
    <comment_count>13</comment_count>
    <who name="Andreas Neumann">a.neumann</who>
    <bug_when>2008-06-16 01:25:04 -0700</bug_when>
    <thetext>It appears that this bug doesn&apos;t exist anymore on my system (MacOSX Tiger) with the newer releases. Could someone on Windows check if the problem still exists? If not, we can close this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83460</commentid>
    <comment_count>14</comment_count>
    <who name="Bruce Rindahl">rindahl</who>
    <bug_when>2008-06-16 07:43:59 -0700</bug_when>
    <thetext>This seems to be fixed in Windows r-34578.
Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175981</commentid>
    <comment_count>15</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2009-12-30 11:03:58 -0800</bug_when>
    <thetext>It also works for me, independent of the window size. Closing the bug now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>