W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2008

PUT of a single image

From: Urs Holzer <urs@andonyar.com>
Date: Wed, 6 Feb 2008 18:08:20 +0100
To: www-amaya@w3.org
Message-Id: <200802061808.20340.urs@andonyar.com>

Hi

It is possible to open a resource of type image/gif or image/png in 
Amaya.

If you then hit "save as", everything looks as if the image itself will 
be saved. Indeed, this is what happens if you save the file local on 
the disk or if the viewed image is a file on the local disk. However if 
you save it on a server using PUT _and_ the image is a remote resource 
fetched with GET, then the HTML document Amaya uses internally to show 
the image (if I understand that correctly) gets sent instead of the 
image itself. (It even gets sent as Content-type image/gif or 
image/png.) I.e. it sends something like:

<html><head><title>eingerollt.png</title></head><body><img 
src="internal:http://www.andonyar.com/stylesheets/eingerollt.png" 
alt="image"></body></html>

Steps to reproduce:
1. Load an image from a remote HTTP server
2. Save the image with "File"->"save as" on a remote HTTP Server
3. Load the saved image in Amaya or any other Browser

I did not test it with other image formats such as jpg. I am using the 
(to the time of writing this) HEAD revision from the CVS repository, on 
Linux (Debian Etch).

Greetings
Urs
Received on Wednesday, 6 February 2008 17:08:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:39 UTC