We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 52064
    • 120 Posts
    Goodmorning everyone,
    I'm trying to generate the thumbnail with phpThumb
    I do not want to crop the image
    I need the image to have a fixed size 400x300
    I want to define the background color

    Thanks.

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

      FerX - Developer at Eracom s.r.l.
      • 42562
      • 1,145 Posts
      donshakespeare Reply #2, 10 years ago
      http://phpthumb.sourceforge.net/demo/docs/phpthumb.readme.txt
      far = Force Aspect Ratio - image will be created at size
      specified by "w" and "h" (which must both be set).
      Alignment: L=left,R=right,T=top,B=bottom,C=center
      BL,BR,TL,TR use the appropriate direction if the
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
      • discuss.answer
        • 44064
        • 185 Posts
        Anton Tarasov Reply #3, 10 years ago
        f.e.
        [[*someImageTv:phpThumb=`w=400&h=300&bg=000000&far=1`]]
          Anton Tarasov
          MODX Developer

          Email: [email protected]
          Web: antontarasov.com