We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28432
    • 372 Posts
    Hi all,

    I would like to know if someone know how to constrain minimal width and height and OR forced to pre-set-ratio for Image+ TV ?

    I've search in the official documentation here : http://jako.github.io/ImagePlus/usage/
    And here : http://alanpich.github.io/tvImagePlus/configuration.html
    The documentation talk about it but i can't find how.


    • Option to constrain minimal width and/or height for the uploaded image.
    • User image crop can be forced to remain at pre-set ratio

    Best regards.

    This question has been answered by Jako. See the first response.

    [ed. note: Steeve last edited this post 10 years, 9 months ago.]
      • 13428 ☆ A M B ☆
      • 1,031 Posts
      Sorry, but that's not possible. Target Aspect Ratio is ignored if Target Height & Target Width are set.
        • 28432
        • 372 Posts
        Quote from: Jako at Jan 13, 2016, 03:58 AM
        Sorry, but that's not possible. Target Aspect Ratio is ignored if Target Height & Target Width are set.

        Sorry for my question, i was not clear. I'm bad at English !

        I would like to know how to set parameters for Target Ration OR Target Width/Height ?
        I understood that you can't set both parameters (ratio and width/height) for a single TV.

        I hope this would be clear : How to set input option in Image+ TV ?
          • 13428 ☆ A M B ☆
          • 1,031 Posts
          You could set the (target height OR the target width) AND the Target Aspect ratio. That way, the image has to constrain a minimal width OR minimal height and is forced to use an aspect ratio.
            • 28432
            • 372 Posts
            Quote from: Jako at Jan 14, 2016, 02:17 PM
            You could set the (target height OR the target width) AND the Target Aspect ratio. That way, the image has to constrain a minimal width OR minimal height and is forced to use an aspect ratio.

            HOW ?
              • 13428 ☆ A M B ☆
              • 1,031 Posts
              In the input options of the template variable. These are shown below of the normal input options. I will attach a screen shot later. [ed. note: Jako last edited this post 10 years, 9 months ago.]
                • 28432
                • 372 Posts
                Quote from: Jako at Jan 15, 2016, 12:33 AM
                In the input options off the template variable. These are shown below of the normal input options. I will attach a screen shot later.

                Hi Jako,

                Thanks I will wait to see the screen shoot.

                I've try to put in different way into the input option field without success :

                {
                "targetHeight":"530",
                "targetRatio":"1.4"
                }


                "targetHeight":"530"||"targetRatio":"1.4"


                "targetHeight":"530",
                "targetRatio":"1.4"
                  • 13428 ☆ A M B ☆
                  • 1,031 Posts
                  Is it possible, that you are trying to set the input options in MIGX? If yes, try it like this:

                  ..."configs":"{\"targetHeight\":\"530\",\"targetRatio\":\"1.4\"}"...

                    • 28432
                    • 372 Posts
                    Quote from: Jako at Jan 15, 2016, 02:53 AM
                    Is it possible, that you are trying to set the input options in MIGX? If yes, try it like this:

                    ..."configs":"{\"targetHeight\":\"530\",\"targetRatio\":\"1.4\"}"...


                    I've try in classic TV not in MIGX TV.
                      • 13428 ☆ A M B ☆
                      • 1,031 Posts
                      Screenshot attached.