V4.1.x Img resize question

Discussion in 'Modules / Plugins / Modifications' started by damiun, Aug 5, 2009.

  1. damiun Customer

    Hi,

    Is it possible to place a predefined background to the photo (during checkout upload)?

    To explain it more, see the pictures

    Attached Files:

  2. Eric Barnes Guest

    Well yes and no. The script does not include any way of doing this but it can be done by editing the upload code. Not an easy process and would require some knowledge of the GD library.
  3. Mike-N-Tosh Developer & Moderator

    What may be a better option than trying to merge two images is to simply add the yellow background to the class that is used to display the image. Also add the appropriate dimensions and sizes to the class to ensure the users image is centered within the classes box. You may also need to add in the template additional positioning like <td align="center" valign="middle">

    Example:
    .thumb
    {
    width: 100px;
    height: 120px;
    display: box;
    text-align: center;
    background: yellow;
    margin: auto;
    }

Share This Page