We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36551
    • 416 Posts
    I'm using MIGX for a product layout with small images, about 75px wide. When I add an image to the MIGX grid in the manager, the image is rendered as a small thumbnail, as expected. However, once I save it and reopen the grid it has been resized to 400px wide. Which of course makes it all pixelated and pushes the remaining fields way down the page. (see attached)

    Is there a way to have it rendered as actual size when it is less than 400px?

    This what I see when I look at it in Firebug:

    <div id="tv-image-preview-inp_470_35_1" class="modx-tv-image-preview">
    <img alt="" src="/~*****/*******/connectors/system/phpthumb.php?w=400&src=assets/images/product-images/product-2.jpg&source=1">
    </div>

    Thanks!
      • 4172
      • 5,888 Posts
      Isn't this the case with all image-TVs, also outside of MIGX?
      MIGX is using MODXs image-TV.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36551
        • 416 Posts
        Bruno

        Ah Yes. You are correct. I hadn't yet noticed that on other image-TVs. They too are displayed at a 400px width. So this is not a MIGX issue. Thanks for clearing that up!

        Since I don't recall seeing this before, I checked an older version of Modx running 2.2.14, on a site I'm about to upgrade and found the image thumbs in the manager are set to 150px wide vs 400 that is used in 2.3.2.

        So this is a recent change in the modx manager. I assume this is not something that I can control anywhere. It seems a 150px thumbnail is preferable to a 400px wide image that can be 2 or 3 times taller than that.

        Perhaps the modx team could take a look at this?
          • 19328
          • 433 Posts
          I was wondering the same. The thumbs are too big for me, too. I have found a way to change the size of the thumbnail by changing a core file.

          Open manager/templates/default/element/tv/renders/input/image.tpl and look at line 4 and change the ?w=400

          {if $tv->value}<img src="{$_config.connectors_url}system/phpthumb.php?w=400&src={$tv->value}&source={$source}" alt="" />{/if}


          Clear cache and save. Tested in 2.3.3