This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 8078 - TranscodingActionResizeImg: absolute paths to local images not handled properly
Summary: TranscodingActionResizeImg: absolute paths to local images not handled properly
Status: NEW
Alias: None
Product: mobileOK authoring tools
Classification: Unclassified
Component: Transcoding (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact: fd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 10:02 UTC by fd
Modified: 2009-10-27 10:02 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-10-27 10:02:39 UTC
Code such as:
<img src="/img/myimage.jpg" [...] />

is valid and targets a local image, identified with an absolute *URI* path. The getimagesize method expects a *file* path, and will not be able to find "/img/myimage.jpg".

Two solutions that are essentially two approaches for the same thing:
- complete the source with the base of the document and retrieve it over HTTP.
- convert the URI path to a file path and opens the resulting filename.