Skip to content

Commit 5046bde

Browse files
author
FreedomKnight
committed
use 1.91 default for facebook thumb
1 parent 9d53988 commit 5046bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private function mergeWatermark($image, $original_name, $suffix)
272272
imagesavealpha($watermark_image, true);
273273
imagesetbrush($image, $watermark_image);
274274
$watermark_pos_x = imagesx($image) - imagesy($watermark_image) - 100;
275-
$watermark_pos_y = ceil(imagesy($watermark_image) / 2) + 20;
275+
$watermark_pos_y = (imagesy($image) - (imagesy($image) * 1 / 1.91)) / 2;
276276
imageline(
277277
$image,
278278
$watermark_pos_x,

0 commit comments

Comments
 (0)