You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ross Gardler <rg...@apache.org> on 2004/10/22 23:07:40 UTC
Scaling images (was Re: [JIRA] Commented: (FOR-264) forrest seed
does not create the resources folder)
Nicola Ken Barozzi wrote:
> Clay Leeds wrote:
<snip/>
>> Would it make sense to have some system to separate images based on
>> resolution (or output target) due to the fact that PDF output warrants
>> higher resolution images for printing?
>
>
> Multi-resolution source images? Cool.
>
<snip/>
> Alternatively Cocoon can be used to scale down the image where needed.
> We could specify a max-width for web pages.
Yes, Clay and I discussed this a little a while back in the context of
embedded OpenOffice.org images. We decided that it would be best to have
a Cocoon generator that could scale the images. Problem is, neither of
us has built a generator before, nor have we checked to see if one
exists yet.
I really don't want to have to go managing multiple image resources when
I don't need to.
>> Thoughts? Eventually, I'd like to come up with a solution to the
>> 'screenshot' dilemma, where if a screenshot is too wide for the page,
>> Cocoon/Forrest would shrink it to fit a default size (640x480,
>> 800x600, or 1024x768, etc.), but provide a link/fork to view the
>> full-size image.
>
>
> I have the same problem with SVG (source and pnged), we could use a
> similar system.
>
Clay did make a suggestion that seemed to work when we were discussing
the above, but I can't find it in the archives right now - Clay can you
find it/remember it?
Ross
Re: Scaling images (was Re: [JIRA] Commented: (FOR-264) forrest seed
does not create the resources folder)
Posted by Ross Gardler <rg...@apache.org>.
Nicola Ken Barozzi wrote:
> Ross Gardler wrote:
> ...
>
>> We decided that it would be best to have a Cocoon generator that could
>> scale the images. Problem is, neither of us has built a generator
>> before, nor have we checked to see if one exists yet.
>
>
> http://cocoon.apache.org/2.1/userdocs/readers/image-reader.html
>
> :-)
>
Cool that is now on my todo list, although I hope someone gets to it
before me ;-)
Ross
Re: Scaling images (was Re: [JIRA] Commented: (FOR-264) forrest seed
does not create the resources folder)
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Ross Gardler wrote:
...
> We decided that it would be best to have
> a Cocoon generator that could scale the images. Problem is, neither of
> us has built a generator before, nor have we checked to see if one
> exists yet.
http://cocoon.apache.org/2.1/userdocs/readers/image-reader.html
:-)
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: Scaling images (was Re: [JIRA] Commented: (FOR-264) forrest seed does not create the resources folder)
Posted by Clay Leeds <cl...@medata.com>.
On Oct 22, 2004, at 2:07 PM, Ross Gardler wrote:
>> Alternatively Cocoon can be used to scale down the image where needed.
>> We could specify a max-width for web pages.
>
> Yes, Clay and I discussed this a little a while back in the context of
> embedded OpenOffice.org images. We decided that it would be best to
> have a Cocoon generator that could scale the images. Problem is,
> neither of us has built a generator before, nor have we checked to see
> if one exists yet.
>
> I really don't want to have to go managing multiple image resources
> when I don't need to.
>
>>> Thoughts? Eventually, I'd like to come up with a solution to the
>>> 'screenshot' dilemma, where if a screenshot is too wide for the
>>> page, Cocoon/Forrest would shrink it to fit a default size (640x480,
>>> 800x600, or 1024x768, etc.), but provide a link/fork to view the
>>> full-size image.
>> I have the same problem with SVG (source and pnged), we could use a
>> similar system.
>
> Clay did make a suggestion that seemed to work when we were discussing
> the above, but I can't find it in the archives right now - Clay can
> you find it/remember it?
>
> Ross
I don't recall which thread you're referring to. Here're a couple of
possibilities on DEV[1] and USER [2].
[1]
http://issues.apache.org/eyebrowse/ReadMsg?
listName=dev@forrest.apache.org&msgNo=13969
[2]
http://issues.apache.org/eyebrowse/ReadMsg?
listName=user@forrest.apache.org&msgNo=622
Web Maestro Clay
--
Clay Leeds - <cl...@medata.com>
Webmaster/Developer - Medata, Inc. - <http://www.medata.com/>
PGP Public Key: <https://mail.medata.com/pgp/cleeds.asc>
Re: Scaling images (was Re: [JIRA] Commented: (FOR-264) forrest seed
does not create the resources folder)
Posted by Frédéric Glorieux <fr...@ajlsm.com>.
> Yes, Clay and I discussed this a little a while back in the context of
> embedded OpenOffice.org images. We decided that it would be best to have
> a Cocoon generator that could scale the images. Problem is, neither of
> us has built a generator before, nor have we checked to see if one
> exists yet.
We done it and try the ImageReader described upper. Some experience to
share, but it works. Our goal was to respect some of the will of the
author in his page layout, so instead of pixels, question was to render %
After lots of tests the easiest is
<htm:img width="33%" align="right"/>
imageReader is useful to generate fixed size thumbnails, but for other
things, you may encounter very big problems, especially when you do some
javascript that request images according to client browser width.
I don't know enough cocoon internal, but I guess lots of images cached
for every possible sizes.
Fred.
--
Frédéric Glorieux (ingénieur documentaire, AJLSM)
<http://www.ajlsm.com>