Skip to content
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

embedded jpeg not used for zommed preview #7162

Closed
AlicVB opened this issue Dec 2, 2020 · 3 comments · Fixed by #7178
Closed

embedded jpeg not used for zommed preview #7162

AlicVB opened this issue Dec 2, 2020 · 3 comments · Fixed by #7178
Labels
scope: UI user interface and interactions

Comments

@AlicVB
Copy link
Contributor

AlicVB commented Dec 2, 2020

Describe the bug
With setting "use embedded jpeg, when zooming inside a full preview image we always recreate the image with the full pipe, even if the full preview image is large enough.

I have traced the origin of the problem, but sadly, I've not the solution...

As soon as you zoom inside a full preview (same for culling)

  1. this start in dtgtk/thumbnail.c:1712 : we need to know the final size of the image to get the zoom limits
  2. this call common/image.c:602
  3. this call develop/develop.c:724
  4. this call develop/develop.c:2027
  5. this call develop/develop.c:1993 (somewhere after)
  6. this call common/history.c:1413 and remove flag DT_HISTORY_HASH_BASIC in favor of DT_HISTORY_HASH_AUTO

At this point, as we test for DT_HISTORY_HASH_BASIC to load the embedded preview or not (common/mipmap_cache.c:1157) we switch to the full pipe instead...

So I'm not sure what to do... taking account of auto applied presets to get the final imagesize seems legitimate, as some can have presets that change the final size. On the other hand, if we go that way, we should never load embedded previews...

The simplest solution would be to revert to testing DT_HISTORY_HASH_BASIC or DT_HISTORY_HASH_AUTO in mipmap_cache, but I'm not sure of the problems it can cause...
@phweyland : git blame says you are the one that have changed that, so you may have some hint...

Platform (please complete the following information):

  • Darktable Version: latest master 30e1b5e
  • OS: xubuntu 20.04
  • OPENCL : no matters
@AlicVB AlicVB added the scope: UI user interface and interactions label Dec 2, 2020
@parafin
Copy link
Member

parafin commented Dec 2, 2020

Do we really care for this feature (using embedded jpegs)?..

@Nilvus
Copy link
Contributor

Nilvus commented Dec 2, 2020

Do we really care for this feature (using embedded jpegs)?..

I think yes, we need to take care of that. I've had for example used a long time an old laptop (a 2013 Macbook pro used on Linux) and zoomed preview was slow with full pipe recomputed to display processed raw.
Personally, I now don't care about that one since september where I buy a new powerful computer but having the possibility to see/compare images with embedded jpg for users who still have an old computer is a good thing.

@AlicVB
Copy link
Contributor Author

AlicVB commented Dec 2, 2020

yes, it's really faster.
On the other hand, I have remove that pref on my "stable" build because of the difference between embedded jpeg and dt rendering. That avoid too many surprises... (but I have a quite decent computer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: UI user interface and interactions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants