Low resolution blurred GUI on macOS High Sierra with retina screen, solution provided

Bug #1754126 reported by 128bit
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

I have attached a screenshot with the two versions of Hugin, with and without the fix.
The differences are not well pronounced on the image, so please zoom in if you cannot see the differences clearly.
If you open the GUI for the fist time even without starting a project you immediately see the low resolution of the GUI on a retina screen.

I have worked out a solution for the problem, add NSHighResolutionCapable to the „Info.plist“ file.
To do so, view the Hugin.app package and open „Hugin.app/Contents/Info.plist“ in your favorite text editor.
At the end of the file you will see something like this:
 <key>CFBundleDocumentTypes</key>
 <array>
  …
 </array>

</dict>
</plist>

Then add this almost at the end of the file BEFORE </dict> and </plist>:
 <key>NSHighResolutionCapable</key>
 <string>True</string>

So that the end looks like this:
 <key>CFBundleDocumentTypes</key>
 <array>
  …
 </array>
 <key>NSHighResolutionCapable</key>
 <string>True</string>

</dict>
</plist>

With this fix the app is high resolution capable and looks like any other app on macOS.
So far I tested this works without problems, if I notice some problems with this fix I’ll notify you.
I would be glad if you would apply the fix for the macOS version.
But nether the less thank you for the great panorama stitching tool 👍.

Here are some information:

Link to Apple Developer site: https://developer.apple.com/library/content/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html

macOS Version: High Sierra 10.13.3

Here is a dump of the System window:

Operating System: Mac OS X (Darwin 17.4.0 x86_64)
Architecture: 64 bit
Free memory: 0 kiB

Hugin
Version: 2018.0.0.5abfb4de7961 built by Niklas Mischkulnig
Path to resources: /private/var/folders/l3/.../T/AppTranslocation/.../d/Hugin.app/Contents/Resources/xrc/
Path to data: /private/var/folders/l3/.../T/AppTranslocation/.../d/Hugin.app/Contents/Resources/xrc/
Hugins camera and lens database: /Users/***/.hugindata/camlens.db
Multi-threading using C++11 std::thread and OpenMP
Monitor profile: /Library/ColorSync/Profiles/Displays/Color LCD-********-****-****-****-************.icc

Libraries
wxWidgets: wxWidgets 3.0.3
wxWidgets Library (wxMac port)
Version 3.0.3 (Unicode: wchar_t, debug level: 0),
compiled at Jan 19 2018 22:52:55

Runtime version of toolkit used is 10.13.

libpano13: 2.9.19
Boost: 1.64.0
Exiv2: 0.25
SQLite3: 3.19.3
Vigra: 1.11.0
LittleCMS2: 2.8

Tags: osx usability
Revision history for this message
128bit (128bit) wrote :
Revision history for this message
Niklas Mischkulnig (mischnic) wrote :

Thank you for reporting this!

I don't own a retina Mac, so I can't test it myself.
I guess the other apps (PTBatcherGUI.app, HuginStichProject.app and calibrate_lens_gui.app) are also pixelated, could you please change the Info.plist for these as well and check if there are issues?

Revision history for this message
128bit (128bit) wrote :

Sorry for the late reply, unfortunately I had forgotten to write about the other apps that you have suggested. I had changed the ohter Info.plist files as well, but I had forgotten to write about that.

But nether the less, all other (PTBatcherGUI, HuginStichProject and calibrate_lens_gui) apps have the same problem, this can also be fixed like Hugin itself, by adding the tag to the Info.plist file.

Revision history for this message
Niklas Mischkulnig (mischnic) wrote :

Does

<key>NSHighResolutionCapable</key>
<true/>

work as well? That is how Xcode wants to format it.

Revision history for this message
128bit (128bit) wrote :

Yes, this works as well. I had tried this before but it didn’t worked, I must done something wrong. But now it woks.

Changed in hugin:
status: New → Fix Committed
tmodes (tmodes)
Changed in hugin:
milestone: none → 2018.2beta1
tmodes (tmodes)
Changed in hugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.