<![CDATA[ Maintain Png transparent background - My Forums]]> https://forums.modx.com/thread/?thread=92339 <![CDATA[Maintain Png transparent background]]> https://forums.modx.com/thread/92339/maintain-png-transparent-background#dis-post-504566
Evo 1.0.5
MaxiGallery 0.5.2]]>
chrisandy Jul 25, 2014, 04:25 AM https://forums.modx.com/thread/92339/maintain-png-transparent-background#dis-post-504566
<![CDATA[Re: Maintain Png transparent background]]> https://forums.modx.com/thread/92339/maintain-png-transparent-background#dis-post-522544
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:
/assets/galleries/123/
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.]]>
Jul Mar 14, 2015, 07:06 AM https://forums.modx.com/thread/92339/maintain-png-transparent-background#dis-post-522544