[Yanel-dev] svg and svg-edit resource-type
Michael Wechner
michael.wechner at wyona.com
Mon Jan 25 12:58:38 CET 2010
simon wrote:
> simon schrieb:
>> Michael Wechner schrieb:
>>> simon wrote:
>>>> hi all
>>>>
>>>> i finished my svg and svg-edit resource-types. you can see it in
>>>> action on my demo site: http://demo.yanel-contribution.3k3.org
>>>
>>> this is great :-)
>>>
>>> Btw, if requesting for example
>>>
>>> http://demo.yanel-contribution.3k3.org/svg/test.svg?yanel.resource.viewid=jpg
>>>
>>>
>>> then I get an error within Firefox and I think the reason is because
>>> instead of image/jpeg the response mime type is
>>>
>>> image/svg+xml
>>>
>>> but in this case it's really a jpeg file, hence I think Firefox gets
>>> confused.
>> the problem is the apache mod_proxy which seems to rewrite
>> mime-types. not sure how to fix this.
>>>
>>> Also I think it would be nice to deliver a jpg based on svg without
>>> the query-string, but I assume this can be configured, right?
>> this is already possible. the view is not only changeable via
>> yanel.resource.viewid paramater but also via extension. if you
>> request http://demo.yanel-contribution.3k3.org/svg/test.jpg it's the
>> same as
>> http://demo.yanel-contribution.3k3.org/svg/test.svg?yanel.resource.viewid=jpg.
>>
>>
>> at least if the matcher is configured that greedy e.g. /svg/**.*
> i found a better way to configure this. i added matcher like this:
> <matcher pattern="**.svg.png" rcpath="/svg.yanel-rc"/>
> <matcher pattern="**.svg.jpg" rcpath="/svg.yanel-rc"/>
> <matcher pattern="**.svg.html" rcpath="/svg.yanel-rc"/>
> <matcher pattern="**.svg" rcpath="/svg.yanel-rc"/>
> and now the bitmaps are reachable like this: test.svg.png. this works
> behind an apache and even don't forces you to store all svg in certain
> folder.
>
> another point: it seems to me i have a problem with batik running on a
> headless server. the bitmaps are looking strange. on my local computer
> i don't have this problem.
>
> BTW i update svg-edit to its newest version (2.4).
thanks for this quick upate
Cheers
Michi
More information about the Yanel-development
mailing list