Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18306

Better algorithm for iOS image selection

    Details

    • Type: Improvement
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      master

      Description

      The image selection algorithm in TiUTils.m under checkFor2XImage() is missing selection by orientation and should fallback to other 16:9 screens before using the 3:4 defaults.

      Current algorithm

      os = ~ipad|~iphone
       

      • if isRetinaHDDisplay
        • image-736h@3x
        • image@3x
      • if isRetinaDisplay
        • if isRetinaiPhone6
          • image-667h@2x
        • elseif isRetinaFourInch
          • image-568h@2x
        • image@2x[os]
        • image@2x
      • image[os]
      • image

      Better algorithm

      orientation = Landscape|Portrait
       

      • if isRetinaHDDisplay
        • image-[orientation]-736h@3x
        • image-736h@3x
        • image@3x
      • if isRetinaDisplay
        • if isRetinaHDDisplay or isRetinaiPhone6
          • image-[orientation]-667h@2x
          • image-667h@2x
        • if isRetinaFourInch or isRetinaHDDisplay or isRetinaiPhone6
          • image-[orientation]-568h@2x
          • image-568h@2x
        • image-[orientation]@2x[os]
        • image@2x[os]
        • image-[orientation]@2x
        • image@2x
      • image-[orientation][os]
      • image[os]
      • image-[orientation]
      • image

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration