HISE Logo Forum
    • Categories
    • Register
    • Login

    get image dimensions

    Scheduled Pinned Locked Moved Scripting
    6 Posts 4 Posters 266 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan KorneffD
      Dan Korneff
      last edited by

      Is it possible to get the dimensions of an image in the Images directory via script?

      Dan Korneff - Producer / Mixer / Audio Nerd

      ustkU ulrikU 2 Replies Last reply Reply Quote 3
      • ustkU
        ustk @Dan Korneff
        last edited by

        @dustbro +1 here

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @Dan Korneff
          last edited by

          @dustbro +1

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          1 Reply Last reply Reply Quote 0
          • ustkU
            ustk
            last edited by

            I've just added two methods to get the width/height of an image that is loaded into a panel. (not from directory though, maybe this could be added to the File API)

            Link Preview Image
            Add ScriptPanel.getImageWidth/Height() methods by ustk · Pull Request #289 · christophhart/HISE

            The open source framework for sample based instruments - Add ScriptPanel.getImageWidth/Height() methods by ustk · Pull Request #289 · christophhart/HISE

            favicon

            GitHub (github.com)

            Can't help pressing F5 in the forum...

            Dan KorneffD 1 Reply Last reply Reply Quote 4
            • Dan KorneffD
              Dan Korneff @ustk
              last edited by Dan Korneff

              @ustk said in get image dimensions:

              I've just added two methods

              Was this ever merged? I could use this in my current project

              Dan Korneff - Producer / Mixer / Audio Nerd

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Dan Korneff
                last edited by

                @Dan-Korneff I did the same thing - https://github.com/christophhart/HISE/pull/289/commits/9aab1f561ab364ee95682d5edbc6aa889d86fa76

                Christoph hasn't merged either as far as I can tell but if you have your own fork you can pull in the changes yourself.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                46

                Online

                1.7k

                Users

                11.7k

                Topics

                101.9k

                Posts