Re: Mozilla squeezed/decreases the edges of image
"Rafal K." <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
Hi,
the file was deleted by something:)
New localization of the file:
http://picasaweb.google.pl/krolrafal/SVGSamples#
There are three files:
The first with red arrows and with ellipse shows uncalibrated image
(preserveAspectRatio was not used),
The second has preserveAspectRatio set to "xMinYMin meet",
the third is a height map used to create shadows.
In the first picture the height-map is not properly calibrated but in the
code I set 100% to width and height (see a code below).
Under Adobe SVG viewer it shows properly calibrated image- the same for
Inkscape.
I noticed that Firefox has problem with scale of image - e.g. when I want to
set width="40%" and height="100%" then it will be calibrated to 40% of the
image size no matter of the second value
...
<defs
id="defs4">
<filter
filterRes="450" height="1" width="1" y="0" x="0"
filterUnits="objectBoundingBox" id="filterHillshade">
<feImage
id="feImage5" result="pict1" height="100%" width="100%"
xlink:href="test.jpg"
preserveAspectRatio="xMinYMin meet" />
<feColorMatrix
id="feColorMatrix7" result="a" in="pict1" type="luminanceToAlpha"
/>
<feDiffuseLighting
id="feDiffuseLighting9"
result="diffuseOut" surfaceScale="20" diffuseConstant="1" in="a">
<feDistantLight
id="feDistantLight11"
elevation="15" azimuth="225" />
</feDiffuseLighting>
<feComposite
id="feComposite13"
result="diffuseOut" operator="in" in2="a" in="diffuseOut" />
<feComposite
id="feComposite15"
k4="0" k3="1" k2="1" k1="0"
operator="arithmetic" in2="diffuseOut" in="SourceGraphic" />
</filter>
</defs>
<g
transform="matrix(1.0839747,0,0,1.2274519,-59.842574,-42.180395)"
id="layer1">
<g
transform="translate(5.7142871,8.8571429)"
id="g2543"
style="filter:url(#filterHillshade)">
<path
d="M 49.5,532.36218 ....
Jonathan Watt-3 wrote:
>
> I'm not seeing the bands on the left or right hand side that are in
> firefox.jpg
> when I view your test in Firefox 3.0.6 or 3.1 beta 2 (on Mac). Maybe
> that's
> because http://www.nabble.com/file/p21912539/test.jpg no longer exists
> though?
> Not sure.
>
> On 2/10/09 2:29 AM, Rafal K. wrote:
>> Hi everyone,
>>
>> I've noticed that Mozilla squeezed the edges of SVG image with filter
>> applied.
>> Under Adobe SVG viewer it looks good - an image (shadow map load from a
>> file) is mapped properly.
>> Under Firefox it is squeezed when the size is set to 100%. I will add
>> that
>> the size of the image and the size of the object under the image are the
>> same.
>> I'm using feImage in filter section of SVG. The image is used like a
>> shadow
>> map, a size of the image is set to 100% so it should be resized to whole
>> boundary of the main object (in this case beezier paths - contours).
>>
>> Here is a small test SVG to show the problem:
>> http://www.nabble.com/file/p21912539/Mountains_lowest_2ver.svg
>> Mountains_lowest_2ver.svg
>>
>> and squeezed image from Firefox 3.01 (looks on left and right edge of the
>> image)
>> http://www.nabble.com/file/p21912539/firefox.JPG firefox.JPG
>>
>> Maybe you know what do I wrong or maybe is there a bug ?
>>
>> Thanks,
>> Rafal
>>
>
> _______________________________________________
> dev-tech-svg mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-svg
>
>
--
View this message in context: http://www.nabble.com/Mozilla-squeezed-decreases-the-edges-of-image-tp21912539p21939294.html
Sent from the Mozilla - SVG mailing list archive at Nabble.com.