Mailing List Archive

openoffice support fails to render some embedded images
Hi,

We've been successfully using forrest 0.8 for over a year now and we like
the ability to build content from openoffice .odt documents. (
http://newton.codecauldron.org)

We largely have this working, but we still find that it is sensitive to what
type of images are embedded in the .odt file: .png and .jpg images render
fine, but .tiff images do not.

Is this just because the file extension in the OO file is .tif rather than
.tiff, or something else?

$ unzip -l InstallationGuide.odt
Archive: InstallationGuide.odt
Length Date Time Name
-------- ---- ---- ----
39 06-05-09 16:49 mimetype
0 06-05-09 16:49 Configurations2/images/Bitmaps/
127620 06-05-09 16:49 Pictures/1000000000000280000001E02A9E9828.tif
59894 06-05-09 16:49 Pictures/1000000000000280000001E0E2C50ACF.tif
7160 06-05-09 16:49 Pictures/1000000000000196000001142835D184.jpg

Up until now, we have just been replacing embedded .tiff images with .png or
.jpg, but this is a pain.

Can anyone suggest how to fix this properly?

Thanks,

Derek
Re: openoffice support fails to render some embedded images [ In reply to ]
Derek Baum wrote:
>
> We've been successfully using forrest 0.8 for over a year now and we like
> the ability to build content from openoffice .odt documents. (
> http://newton.codecauldron.org)
>
> We largely have this working, but we still find that it is sensitive to what
> type of images are embedded in the .odt file: .png and .jpg images render
> fine, but .tiff images do not.
>
> Is this just because the file extension in the OO file is .tif rather than
> .tiff, or something else?
>
> $ unzip -l InstallationGuide.odt
> Archive: InstallationGuide.odt
> Length Date Time Name
> -------- ---- ---- ----
> 39 06-05-09 16:49 mimetype
> 0 06-05-09 16:49 Configurations2/images/Bitmaps/
> 127620 06-05-09 16:49 Pictures/1000000000000280000001E02A9E9828.tif
> 59894 06-05-09 16:49 Pictures/1000000000000280000001E0E2C50ACF.tif
> 7160 06-05-09 16:49 Pictures/1000000000000196000001142835D184.jpg
>
> Up until now, we have just been replacing embedded .tiff images with .png or
> .jpg, but this is a pain.
>
> Can anyone suggest how to fix this properly?

See $FORREST_HOME/main/webapp/raw.xmap
and search in file for "jpg" and "jpeg".
Add similar handling to read other raw formats,
such as TIFF.

Please add a patch to our issue tracker:
http://forrest.apache.org/issues.html

-David
Re: openoffice support fails to render some embedded images [ In reply to ]
le 10/06/2009 09:57 Derek Baum a écrit :
> Hi,
>
> We've been successfully using forrest 0.8 for over a year now and we
> like the ability to build content from openoffice .odt documents.
> (http://newton.codecauldron.org)
>
> We largely have this working, but we still find that it is sensitive
> to what type of images are embedded in the .odt file: .png and .jpg
> images render fine, but .tiff images do not.
>
> Is this just because the file extension in the OO file is .tif rather
> than .tiff, or something else?
>
> $ unzip -l InstallationGuide.odt
> Archive: InstallationGuide.odt
> Length Date Time Name
> -------- ---- ---- ----
> 39 06-05-09 16:49 mimetype
> 0 06-05-09 16:49 Configurations2/images/Bitmaps/
> 127620 06-05-09 16:49 Pictures/1000000000000280000001E02A9E9828.tif
> 59894 06-05-09 16:49 Pictures/1000000000000280000001E0E2C50ACF.tif
> 7160 06-05-09 16:49 Pictures/1000000000000196000001142835D184.jpg
>
> Up until now, we have just been replacing embedded .tiff images with
> .png or .jpg, but this is a pain.
>
> Can anyone suggest how to fix this properly?
>
> Thanks,
>
> Derek
>
>
Hi,

I am going to work a little on forrest on friday,
I will see what's the problem with tif files.
Did you create an issue for this in Jira ?

--
Salutations,
Cyriaque
Re: openoffice support fails to render some embedded images [ In reply to ]
Hi,

No I didn't create a Jira issue.

I have not yet tried David's suggestion of looking in raw.xmap, as I'm
currently travelling, but I hope to try it next week.

Derek

2009/6/22 Cyriaque Dupoirieux <cyriaque.dupoirieux@pco-innovation.com>

> le 10/06/2009 09:57 Derek Baum a écrit :
>
> Hi,
>>
>> We've been successfully using forrest 0.8 for over a year now and we like
>> the ability to build content from openoffice .odt documents. (
>> http://newton.codecauldron.org)
>>
>> We largely have this working, but we still find that it is sensitive to
>> what type of images are embedded in the .odt file: .png and .jpg images
>> render fine, but .tiff images do not.
>>
>> Is this just because the file extension in the OO file is .tif rather than
>> .tiff, or something else?
>>
>> $ unzip -l InstallationGuide.odt
>> Archive: InstallationGuide.odt
>> Length Date Time Name
>> -------- ---- ---- ----
>> 39 06-05-09 16:49 mimetype
>> 0 06-05-09 16:49 Configurations2/images/Bitmaps/
>> 127620 06-05-09 16:49 Pictures/1000000000000280000001E02A9E9828.tif
>> 59894 06-05-09 16:49 Pictures/1000000000000280000001E0E2C50ACF.tif
>> 7160 06-05-09 16:49 Pictures/1000000000000196000001142835D184.jpg
>>
>> Up until now, we have just been replacing embedded .tiff images with .png
>> or .jpg, but this is a pain.
>>
>> Can anyone suggest how to fix this properly?
>>
>> Thanks,
>>
>> Derek
>>
>>
>> Hi,
>
> I am going to work a little on forrest on friday,
> I will see what's the problem with tif files.
> Did you create an issue for this in Jira ?
>
> --
> Salutations,
> Cyriaque
>
>
Re: openoffice support fails to render some embedded images [ In reply to ]
On Mon, Jun 22, 2009 at 10:52:26AM +0200, Cyriaque Dupoirieux wrote:
> le 10/06/2009 09:57 Derek Baum a écrit :
>> Hi,
>>
>> We've been successfully using forrest 0.8 for over a year now and we
>> like the ability to build content from openoffice .odt documents.
>> (http://newton.codecauldron.org)
>>
>> We largely have this working, but we still find that it is sensitive
>> to what type of images are embedded in the .odt file: .png and .jpg
>> images render fine, but .tiff images do not.
>>
>> Is this just because the file extension in the OO file is .tif rather
>> than .tiff, or something else?
>>
>> $ unzip -l InstallationGuide.odt
>> Archive: InstallationGuide.odt
>> Length Date Time Name
>> -------- ---- ---- ----
>> 39 06-05-09 16:49 mimetype
>> 0 06-05-09 16:49 Configurations2/images/Bitmaps/
>> 127620 06-05-09 16:49 Pictures/1000000000000280000001E02A9E9828.tif
>> 59894 06-05-09 16:49 Pictures/1000000000000280000001E0E2C50ACF.tif
>> 7160 06-05-09 16:49 Pictures/1000000000000196000001142835D184.jpg
>>
>> Up until now, we have just been replacing embedded .tiff images with
>> .png or .jpg, but this is a pain.
>>
>> Can anyone suggest how to fix this properly?
>>
>> Thanks,
>>
>> Derek
>>
>>
> Hi,
>
> I am going to work a little on forrest on friday,
> I will see what's the problem with tif files.

I'm sorry, I forgot to report that I did some troubleshooting on
this. I tried David's suggestion with raw.xmap, but I didn't notice
any change. When I called the full URL of the graphic that wasn't
displaying as it should have done, the image was fetched but the
mime-type was not what I specified in raw.xmap.

Brian

> Did you create an issue for this in Jira ?
>
> --
> Salutations,
> Cyriaque
>