Skip to content

functions.image.php function sed_image_merge NEW position #104

Description

@SeditioCMS

add Center position

functions.image.php find

case 'Bottom right':
		$img2_x = $img1_w - 8 - $img2_w;
		$img2_y = $img1_h - 8 - $img2_h;
		break;

add below

case 'Center':
		$img2_x = ($img1_w - $img2_w) / 2;
		$img2_y = ($img1_h - $img2_h) / 2;
		break;

Open functions.admin.php

find
$result[] = array ('gallery', '21', 'gallery_logopos', 2, 'Bottom left', array('Top left','Top right','Bottom left','Bottom right'));

Change
$result[] = array ('gallery', '21', 'gallery_logopos', 2, 'Bottom left', array('Top left','Top right','Bottom left','Bottom right','Center'));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions