Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functions.image.php function sed_image_merge NEW position #104

Open
SeditioCMS opened this issue Jun 11, 2024 · 0 comments
Open

functions.image.php function sed_image_merge NEW position #104

SeditioCMS opened this issue Jun 11, 2024 · 0 comments

Comments

@SeditioCMS
Copy link

SeditioCMS commented Jun 11, 2024

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'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant