LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2024, 09:21 AM   #1
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
[Qutebrowser] different behavior when loading AVIF locally or online


Good afternoon.

A linked avif-file is opened in Qutebrowser as expected, when the page, containing the link, and the avif-file are read from the local hard disk :
Code:
<a href="avif/an_image.avif"><img src="avif/thumb.avif" alt="thumbnail"/></a>
The same file-structure, uploaded to my hosting server, results in the download-dialog being displayed, when the link is clicked.

The problem does not occur in Firefox.

There does not appear to be easily accessible information about this behavior of Qutebrowser or about what I could do to improve it. I can use JavaScript onclick handlers to remedy part of my problem, but this is too much of a change and I deem it superfluous. I will rather change the image format again, but not yet ...

Maybe you know something ?

Erm... I notice the continuity of my Qutebrowser threads and the bad choice I made to wait until I was in a really bad mood before posting here. This should be the last such event and I consider again giving up on Qutebrowser, too.

Edit: You can have the original page: https://www.uplawski.eu/div/Kompost (new version as of 21:30 uses JavaScript)
This documents problems with a compost-container which is difficult to move without breaking some of its parts and sensible to strong winds under certain conditions. This one was given to us for free and I communicate my experience to our local waste disposal administration.

Last edited by Michael Uplawski; 03-15-2024 at 03:30 PM. Reason: Words. Kraut2English
 
Old 03-15-2024, 12:59 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Qutebrowser is webengine isn't it? Lets see... Yes Qt6webengine and PyQt6.

Read the docs for Qt5-Qt6webengine. It needs javascript to do a lot of things. The web inspector won't even work without scripts on.

https://doc.qt.io/qt-6/qtwebengine-overview.html
https://pypi.org/project/PyQt6/
https://www.riverbankcomputing.com/software/pyqt/

What you are describing sound just like QtWebengine. I use it all of the time in my own web browser. I block all of that, and do things manually.
 
1 members found this post helpful.
Old 03-15-2024, 03:15 PM   #3
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622

Original Poster
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Qutebrowser is webengine isn't it? Lets see... Yes Qt6webengine and PyQt6.

Read the docs for Qt5-Qt6webengine. It needs javascript to do a lot of things. The web inspector won't even work without scripts on.
I do not block JavaScript and even use it on a different page to get around the problem of links to AVIF.
Quote:
I block all of that, and do things manually.
I am no longer an Informaticien. That I can see Firefox act in the way I had expected replaces all expert-knowledge about the underlying technology. Your references are not given in vain. They serve already to evaluate better the amount of inconvenience that I encounter when deploying technology in the hope to simplify my task of publishing images.

I did it wrong and will improve.
Edit: Done. JavaScript is used to display the images.

Last edited by Michael Uplawski; 03-15-2024 at 03:31 PM. Reason: UNCONDITIONAL CAPITULATION
 
Old 03-15-2024, 03:32 PM   #4
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622

Original Poster
Blog Entries: 40

Rep: Reputation: Disabled
This forum needs a [TOTAL SUBMISSION] button


Edit: Epiphany-Browser works. Engine-Trouble, I guess. But could be APU-trouble, too or a flat tire, a bird-strike or adverse weather conditions.

Last edited by Michael Uplawski; 03-17-2024 at 09:34 AM. Reason: epiphany-browser
 
Old 03-17-2024, 12:36 PM   #5
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622

Original Poster
Blog Entries: 40

Rep: Reputation: Disabled
UPDATE To make QuteBrowser display AVIF like any other image-type that it supports, you must ensure that the server transmits the right Content-Type. I did not contact my Web-administrator, but modified the .htaccess file in the root-directory of my Web-site:
Code:
AddType image/avif .avif
Something I have forgotten in the past and will – again – forget. Probably now.

I cannot know, why other Browsers display the AVIF-image anyway, but Qutebrowser or Qt WebEngine need the additional information, but be surprised : I don't give and consider this an unneeded complication. Basically useless knowledge and a responsibility that I do not want.

ΩΩΩΩ

Last edited by Michael Uplawski; 03-17-2024 at 12:39 PM.
 
  


Reply

Tags
avif., qutebrowser



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [QuteBrowser] URL-redirection works but not in QuteBrowser?? Michael Uplawski Linux - Software 15 03-12-2022 04:17 AM
[SOLVED] [qutebrowser] replace an existing key-binding Michael Uplawski Linux - Software 4 03-31-2021 02:54 PM
Widevine crashes qutebrowser or Falkon budrz89 Linux From Scratch 2 05-07-2020 12:33 PM
[SOLVED] Using macros with Qutebrowser validator456 Linux - General 0 07-19-2017 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration