ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Image Manipulation

March 14, 2013 12:01pm

Subscribe [2]
  • #1 / Mar 14, 2013 12:01pm

    ahmad saad

    364 posts

    Hi everyone,

    I hope someone have answer for my q

    I use image manipulation with crop option for e.g 200*300 when I upload a bigger image it’s work fine , but if I upload a smaller image e.g 100*200 , it stay as it .

    How can I change this behavior to create a new image 200*300 with transparent background and the smaller image in the middel of it??????

    please chack the attachment images to clear what I mean.


    Thank’s.

  • #2 / Mar 15, 2013 4:46pm

    Rob Allen

    3105 posts

    You’d probably need an addon such as http://www.causingeffect.com/software/expressionengine/ce-image that allows for varous image effects and filters. However you’d never know the sizes of the original so it may provide difficult.

    Another way would be to apply a white background to the image container then center the image in that container…

  • #3 / Mar 16, 2013 9:08am

    ahmad saad

    364 posts

    Thank’s Rob,

    I like work with EE , but I don’t like that even the principle codes of PHP (like loop or create a var ......) need an addon on EE.

    I find a solution for this one , you can find on :

    https://support.ellislab.com/bugs/detail/19261


    I hope this will help someone else.

    Regards,

    Ahmad saad.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases