We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36582
    • 463 Posts
    Any way to retain the transparent background of a png file?

    Evo 1.0.5
    MaxiGallery 0.5.2
      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
      • 15001
      • 697 Posts
      Do you mean, that when importing the picture it is resized and loose its transparent color?

      One solution would be:

      1) to size your pictures to the right size
      (some softwares like like Irfanview allow batch resizing of many files)

      2) to set the transparent color

      3) to transfer the pictures with an FTP client like FileZilla.
      Your must place your pictures in subfolders of /assets/galleries, where each subfolder is named according to the document ID. For instance:
      for the gallery to be displayed on page 123.

      4) to create your galleries manually by adding record manually the 'modx'_maxigallery table (where 'modx_' is here the table prefix you chose when installing MODx).

      I've not tested it but its possible that your pictures are already to the size that they will have in MaxiGallery, they would not be resized when loading them in MaxiGallery. Else, you could maybe modify the source code to allow this behavior.