Bug 352912

Summary: Loading of some images fail. Console displays: QImageReader::read() using format hint "jpg" failed: "Unknown error"
Product: [Applications] gwenview Reporter: Anderson Medeiros Gomes <amg1127>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: amg1127, cfeck, myriam
Priority: NOR    
Version: Other (add details in bug description)   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: An image that reproduces the problem.

Description Anderson Medeiros Gomes 2015-09-19 16:00:04 UTC
Gwenview is unable to load some images I have saved on my computer. However, Konqueror can open them.

This is an example image: http://www.luagge.com.br/imobiliar/Fotos/284/00000284AA_fa_0.jpg . The console display these messages when I try to open it:

$ gwenview --version
org.kde.gwenview 15.08.0
$ gwenview 'http://www.luagge.com.br/imobiliar/Fotos/284/00000284AA_fa_0.jpg'
QImageReader::read() using format hint "jpg" failed: "Unknown error"
A bad Qt image decoder moved the buffer to 69104 in a call to canRead()! Rewinding.
Image format is actually "jpeg" not "jpg"

----

There is a downstream bug report here: https://bugzilla.redhat.com/show_bug.cgi?id=1257632

Also, there is a question of an Arch user here: https://www.reddit.com/r/kde/comments/3l7l75/gwenview_1508_on_plasma_5arch_fails_to_open_jpgs/

Reproducible: Always

Steps to Reproduce:
1. Open the referenced image using gwenview.
2. Open the referenced image using konqueror.


Actual Results:  
The image doesn't load

Expected Results:  
The image should load.

Gwenview Version 15.08.0
Using KDE Frameworks 5.13.0
Using Qt 5.5.0

Konqueror Version 4.14.11
Using KDE Development Platform 4.14.11
Using Qt 4.8.7
Comment 1 Anderson Medeiros Gomes 2015-09-19 16:01:27 UTC
Created attachment 94646 [details]
An image that reproduces the problem.
Comment 2 Christoph Feck 2015-09-25 10:02:24 UTC
Bug is fixed in Qt 5.5.1, see https://codereview.qt-project.org/#/c/115348/