-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong image preview and image preview size in form #33682
Comments
@hkautz could you attach an already prepared project? thanks! |
@gioman THX for replying - in the attached problem.zip is the gpkg included which you can open and see the issue. |
There are actually two (or more?) issues. The one about the wrong preview size and the "growing" effect: and the fact that if the if the form points to a picture with a path that is wrong/not available then QGIS shows the WRONG picture. In the image below the path d:\problem\pictures\b.jpg does not exist, but in form view QGIS shows the image of the previous record/feature. I'll tag this as HIGH PRIORITY as showing the wrong picture can leas to very bad results/decisions... By the way I tested on QGIS master on Windows. |
Probably related to #23223 |
@alexbruy do you want to take this? |
@elpaso unfortunately I don't have much time — need to do other work and also preparing to 5 day workshop. |
Fixes qgis#33682 (maybe)
Fixes qgis#33682 (maybe) Cherry-pick from master commit 72c0ae7
@elpaso Which version of QGIS takes this change into consideration? Cheers |
I have problems with the integrated document viewer when an attribute form is created with the drag and drop designer.
I am working with a gpkg layer (polygon) where some attributes are paths to images/photos.
For fill in data, I use the Attributes Form -> for better structure I use the form Layout drag and drop designer. (Layout see attachment as sshot_1.png)
and for images/photos the Widget Type „Attachment“.
I have defined the image width/height in the Integrated Document Viewer to 150X150px.
When visualizing the table in the form view, some strange things in displaying the former inserted pictures appear: The images start as a 1x1px image and grows automatically to the full size as wide as the attribute form. Completely ignoring the defined 150x150px. Until every single image reaches the full size, the system is blocked so I can only watch the images growing.
The second issue when working with this layer is following:
(This issue could not be reproduced in the attached sample– it only appeared in the original project but I suggest it could have the same origin)
When switching between different features, I would expect that:
What on my system appears is following:
How to Reproduce
Tab1 (create Category Tab1 as a Tab, foto1 as a group in a container and so on)
Define the widget type "Attachment" for each of these fields
In the Integrated Document Viewer set the Type to Image and try to set a preview size of 150x150px
QGIS and OS versions
The text was updated successfully, but these errors were encountered: