Can Miva make a fixed width and height without cropping like imagemagick thumbs flag?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kayakbabe
    Mega Mivite




    • Jun 2008
    • 1520

    #1

    Can Miva make a fixed width and height without cropping like imagemagick thumbs flag?

    I believe image machine uses the gd library.
    My source images are at all different aspect rations and it makes for uneven rows in category screens and in featured product sliders and the like.
    Wholesalers use my image too and complain about the varying aspect ratios.

    Image machine takes the height and width and uses those as maximum allowed dimensions and resizes my images but keeps the aspect ratio. Great! Nothing is stretched!

    BUT...
    I want to know if there is a way to tell Miva's imagemachine to resize like it does now.. and also fill extra space to end up with an image of the specified width and height?
    That way all my aspect ratios will be the same.
    ???
  • kayakbabe
    Mega Mivite




    • Jun 2008
    • 1520

    #2
    yea! I agree.
    I think the only use the ImageCopyResample and ImageCopyResized function of the GD Library.
    Would be really cool if miva has a function GDimageCopyMerge... if it does I feel my first attempt at a module coming on .
    Now I just go to learn if it is possible to "intercept" thegdImageCopyResized in the Image_ResizeIntoBoundingBox_dgImage function and replace it with gdimageCopyMerge..

    I also think ideally if they could just add a checkbox on the image machine component so we can just check a box when we are working on page templates
    ... and have it say "make square image" and let us set a color to fill that space with somewhere in the admin settings...
    I would be a happy camper. Then we could control it on a per template basis. Would make stores very very pretty indeed.

    Comment

    Working...
    X