Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15337445
D19214.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19214.diff
View Options
diff --git a/src/applications/macro/engine/PhabricatorMemeEngine.php b/src/applications/macro/engine/PhabricatorMemeEngine.php
--- a/src/applications/macro/engine/PhabricatorMemeEngine.php
+++ b/src/applications/macro/engine/PhabricatorMemeEngine.php
@@ -236,7 +236,10 @@
Filesystem::writeFile($output_name, $memed_frame_data);
}
- $future = new ExecFuture('convert -loop 0 %Ls %s', $output_files, $output);
+ $future = new ExecFuture(
+ 'convert -dispose background -loop 0 %Ls %s',
+ $output_files,
+ $output);
$future->setTimeout(10)->resolvex();
return Filesystem::readFile($output);
@@ -297,6 +300,9 @@
$font_max = 72;
$font_min = 5;
+ $margin_x = 16;
+ $margin_y = 16;
+
$last = null;
$cursor = floor(($font_max + $font_min) / 2);
$min = $font_min;
@@ -321,12 +327,12 @@
// text extends, for example if it has a "y".
$descend = $box[3];
- if ($height > $dim_y) {
+ if (($height + $margin_y) > $dim_y) {
$all_fit = false;
break;
}
- if ($width > $dim_x) {
+ if (($width + $margin_x) > $dim_x) {
$all_fit = false;
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 5:55 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386683
Default Alt Text
D19214.diff (1 KB)
Attached To
Mode
D19214: Use "-dispose background" to improve reassembly of GIFs with transparency
Attached
Detach File
Event Timeline
Log In to Comment