How to change size of logo or banner images and save transparency

Created:

2016-11-16 12:57:04 UTC

Modified:

2017-08-16 17:38:59 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to change size of logo or banner images and save transparency

Applicable to:

  • Plesk Sitebuilder for Linux

Symptoms

I have uploaded an image as a site's logo or banner via the Design page in the Sitebuilder Wizard. The image file is uploaded successfully; however, the logo image looks very small and is not transparent.

Is it possible to increase the size of the logo image and save the transparency?

Cause

Logo image size is defined in the template used by the site. When uploading an image as a logo, its size is formatted according to the default logo size defined in the template and the image becomes not transparent.

Resolution

In the configuration file of Plesk Sitebuilder, it is possible to change the resize type of an uploaded logo or of banner images.

  1. Open for editing the Plesk Sitebuilder configuration file. The file is /usr/local/sitebuilder/config on RPM-based systems or /usr/opt/sitebuilder/config on Debian-based systems.

  2. To change the default logo upload behavior, add the following string under the General section. Set keep_asis, error, simple, or keep_aspect_ratio. For example:

    --->8---
    [general]
    logo_resize_type = keep_asis
    ---8<----
  3. To change the default banner upload behavior, add the following string under the General section. Set keep_asis, error, simple, or keep_aspect_ratio. For example:

    --->8---
    [general]
    banner_resize_type = keep_asis
    ---8<---
  4. Save the file.

For details, refer to Customizing Wizard Behavior upon Logo and Banner Upload .

In order to save the image transparency , it is recommended that you add the resize type keep_asis .

Have more questions? Submit a request
Please sign in to leave a comment.