Bug 477232 - Missing file extensions in file names of locally saved images from web pages, where these images were downloaded via the "Site Info" window
Summary: Missing file extensions in file names of locally saved images from web pages,...
Status: CONFIRMED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: 24.01.75
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-19 14:20 UTC by Jens
Modified: 2024-10-06 15:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2023-11-19 14:20:20 UTC
1. Open https://www.ardaudiothek.de/episode/geht-ein-mann-zum-arzt/hautkrebsscreening-scan-mich-6-6/rbb/12846195/ with the Falkon browser.

2. Click the lock icon left from the Adress Bar. This icon shows the following tooltip text: "Show information about this page".

3. Click the "More ..." button: The "Site Info" window is displayed.

4. Click the "Media" tab.

Information about the images displayed at the above-mentioned URL gets displayed below.

5. Click any entry in this list. 

6. Click the "Save" button. 

Note: In my Falkon compilation this button does not show the English word "Save", but instead the German word "Speichern", which means "Save" in English. Probably all menu names, menu entries and most buttons in the GUI of my Falkon compilation normally show texts in English. I will create an extra bug report about this behavior.

7. Download the selected image to your local disk. Before downloading, do not change the file name of the selected image.

The downloaded image file has a file name without any file extensions. If I open the properties of such a downloaded image file on my hard disk, its file properties tell me that the file is a *.png file.

I cannot find the file name of the downloaded image file in the HTML code of the web page which I am currently viewing at the URL specified above. Falkon seems to generate file names for downloading which are completely different to the file names of the image files that are specified in the HTML code of the above-mentioned URL. But the HTML code of this URL contains file names which have the *.png file extension.

That's strange:

I just repeated the steps mentioned above, but this time the file name of the image file I could download to my hard disk has the *.png file extension. Note that I am currently on a slightly different URL, i. e. https://www.deutschlandfunk.de/

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 Juraj 2023-11-26 22:46:45 UTC
Hello,

I can confirm, on the given address the images do not save properly.
The name seems to be taken from the image address:

https://api.ardmediathek.de/image-service/images/urn:ard:image:0d3c1396dd396d27?w=448&ch=31bb1c500837e746

Which is a weird one to me.
This needs more investigation.

IIRC when Falkon is saving images from this dialog, it always converts them to PNG format.

Best regards,
Juraj
Comment 2 Jens 2024-09-20 11:41:56 UTC
I checked if the behavior described in this bug report still occurs in Falkon version 24.08.1: No. The name of the downloaded image file now has the file extension *.png. Thus this bug report can be closed (preferably by another user than me).
Comment 3 Juraj 2024-10-05 19:03:45 UTC
(In reply to Jens from comment #2)
> I checked if the behavior described in this bug report still occurs in
> Falkon version 24.08.1: No. The name of the downloaded image file now has
> the file extension *.png. Thus this bug report can be closed (preferably by
> another user than me).

I checked it as well and it still seems to be an issue, it could be that different QtWebEngine versions provide different results.
But it anyway needs some checks from falkon to at least add ".png" all the time, or to somehow download the original image instead.
Comment 4 Jens 2024-10-06 15:52:12 UTC
Currently the following version of the QtWebengine is installed in my Tuxedo OS 3 installation:

---
<User>@<Hostname>:~$ sudo apt -a list qt6-webengine
Listing... Done
qt6-webengine/jammy,now 6.7.2-0zneon+22.04+jammy+release+build1 amd64 [installed,automatic]
qt6-webengine/jammy 6.7.2-0xneon+22.04+jammy+release+build54 amd64
qt6-webengine/jammy 6.7.2-0xneon+22.04+jammy+release+build53 amd64

<User>@<Hostname>
---

I checked the apt logs in /var/log/apt, beginning in a history*.gz file which had been finalized (rotated) with the following time stamp:

---
<User>@<Hostname>:/var/log/apt$ ls -ahl history.log.1
-rw-r--r-- 1 root root 172K Sep 30 19:49 history.log.1
<User>@<Hostname>:/var/log/apt$ 
---

(I had to g-unzip this file to have a look into it)

The first line of this file begins like this:

---
<User>@<Hostname>:/var/log/apt$ cat history.log.1 | more

Start-Date: 2024-09-06  12:05:54
Commandline: apt-get upgrade
---

My comment here in this bug report when I reported that downloaded *.png files in Falkon version 24.08.1 now locally get saved with the *.png file extension is from 2024-09-20.

Thus, I have checked the content from first line in the file history.log.1 until the last line of the file history.log which has not been rotated yet for any occurance containing the string "*webengine*":

---
<User>@<Hostname>:/var/log/apt$ grep '*webengine*' history.log.1 
<User>@<Hostname>:/var/log/apt$ 

<User>@<Hostname>:/var/log/apt$ grep '*webengine*' history.log
<User>@<Hostname>:/var/log/apt$
---

Thus, since I created my comment here on 2024-09-20, no update for the package qt6-webengine had been installed in my Tuxedo OS 3 installation.

So the version of the QtWebengine which was involved when I reported that downloaded png files in Falkon version 24.08.1 get locally saved with the *.png file extension is 6.7.2