Bug 73166 - QWebVew and local images
Summary: QWebVew and local images
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-27 03:27 PST by szyk
Modified: 2014-01-28 20:32 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description szyk 2011-11-27 03:27:06 PST
Many times when we writing apps (not web browsers) we need to display something as html. And we want prettify that html with local images. And to do that we must type absolute paths to images - they can't be relative paths as expected (this is first bug). But under Windows path to image must be WITHOUT "file://" prefix, and under Linux it must be WITH "file://" prefix (this is second bug).
Comment 1 Greg Hellings 2012-01-09 22:05:11 PST
I can confirm this using a MinGW cross-compile from Linux, except that the proposed fix in this bug report does not work for me.

When I use URLs in either the form "file:C:\path\to\file.jpg" or "file://C:\path\to\file.jpg" an outline of the image which is the proper size appears, but the image content does not appear. When I switch to just "C:\path\to\file.jpg" a tiny outline of an image that appear to be about 2px square is rendered instead.

Identical code works perfectly in Linux.
Comment 2 szyk 2012-01-09 23:53:02 PST
@Greg Hellings
Try this: <img src="C:/dir/subdir/file.gif"/>
Comment 3 Greg Hellings 2012-01-13 19:36:41 PST
Same results. Properly sized image outline (likely from anchor tag wrapping) but no image content.
Comment 4 szyk 2012-01-14 06:15:16 PST
I assume you are writing Qt based app. Are you checked whether your image format is supported by Qt library? (especially by Qt plugings) I was fighting with Qt when I deploy my app on fresh Windows system because not all image formats working as expected.