如何获取使用传输发送的电子邮件的message_id?(How to get message_id of emails sent using transmission?)
我们正在从Mandrill转向SparkPost。 我们认为SparkPost的传输与Mandrill的发送模板消息调用最接近。
Mandrill使用每封电子邮件的ID和状态 es列表回复了这些电话。 另一方面,SparkPost返回单个ID和摘要统计信息(已发送的电子邮件数和失败的电子邮件数)。 有没有办法让这些身份和状态脱离传输响应或根本没有?
We're moving from Mandrill to SparkPost. We figured that SparkPost's transmission is the closest thing to Mandrill's send-template message call.
Mandrill responded to those calls with a list of ids and statuses for each email. On the other hand SparkPost returns a single id and summary statistics (number of emails that were sent and number of emails that failed). Is there some way to get those ids and statuses out of the transmission response or at all?
原文:
最满意答案
-gravity
救援,检查文件的例子 。更新 :好的我误解了这个任务。
但恕我直言,你仍然可以首先创建你的数字作为图像(当然你可以自定义字体等),并修剪它:
/usr/bin/convert -fill black -size 40x40 label:$NUMBERS -transparent white -trim numbers.gif
现在检查新图像的大小
/usr/bin/identify trimmed.gif
然后计算将它放置在图像上的位置。 我留给你;-)
现在,您只需将数字合并到图像中即可完美定位(替换+ X + Y)。
/usr/bin/composite -geometry +X+Y trimmed.gif original_image.jpg original_with_numbers.jpg
HTH
-gravity
to the rescue, check the documentation with examples.Update: OK I misunderstood the task.
But IMHO you can still create your numbers as an image first (of course you can customize the font, etc) and trim it:
/usr/bin/convert -fill black -size 40x40 label:$NUMBERS -transparent white -trim numbers.gif
Now check the new image's size
/usr/bin/identify trimmed.gif
Then calculate where to position it on your image. I leave it to you ;-)
Now you only need to merge the numbers to your image to the perfect position (replace +X+Y).
/usr/bin/composite -geometry +X+Y trimmed.gif original_image.jpg original_with_numbers.jpg
HTH
相关问答
更多-
更新的答案 由于我们遇到了一些问题并且您无法分享您的图片,让我们自己制作一些: convert -size 600x200 xc:none -fill red -draw "circle 100,100 100,200" -bordercolor black -border 1 1.png convert -size 600x200 xc:none -fill lime -draw "circle 300,100 400,100" -bordercolor black -border 1 2.png c ...
-
Magick ++ Blob图像错误(Magick++ Blob to Image Error)[2022-07-08]
我找到了这个问题的答案。 我将接收到的数据类型更改为BYTE,并在我的C#中发送了字节本身。 我把BYTE转换成了const void *,所有的东西都解决了。 然后,因为我正在测试PDF文件,所以我使用了“readImages”方法,现在它完美地工作了。 编辑:也愚蠢的我,为了得到blob的长度,它应该是“blob.length()”,而不是sizeof。 感谢@emcconville指出。 I found the answer to this problem. I changed the receive ... -
看看你的“-font DRAGM.ttf”。 尝试设置OR“/full/path/to/font.ttf”,或者只是字体名称。 可用的字体名称列表:来自控制台的“convert -list font”。 Look at your "-font DRAGM.ttf". Try to set OR "/full/path/to/font.ttf", OR just font name. Available list of font names: "convert -list font" from console ...
-
如何使用magick将图像序列淡入另一个cmd中?(How to fade an image sequence into another in cmd with magick?)[2022-09-09]
你的^意思是“续行” - 这不是批文件的工作方式。 你需要延迟扩展 : Setlocal enabledelayedexpansion FOR /L %%x IN (0,1,99) DO ( SET PADDED=00%%x SET PADDED=!PADDED:~-3! magick composite -dissolve %%x -gravity Center "frl1/frame! PADDED!.png" "frl2/frame!PADDED!.png" -alpha SET "o ... -
如果没有为makefile定义卸载,则可能需要手动卸载过程。 这个问题已在'make install'的相反问题中讨论过,即。 你如何在Linux中卸载库? 。 I ditched the idea of using Ghostscript as an Image Magick Delegate, not only because the installation process was not working out for but, but also due to the fact that my re ...
-
在Fedora,CentOS,Ubuntu和更多的应用程序中,通过cpan程序安装Image :: Magick需要安装这种类型的挑战,并且对于Image :: Magick安装脚本已经有几年的敏感性了,它似乎(如果一个人搜索)。 这对于桌面Linux来说都是如此,更是如此,通过Apache cpanel。 有收件人,但至少在Ubuntu,他们没有解决所有问题。 有时候,为了做到这一点,必须首先使用ImageMagick删除相关的库来重置链接。 所有建议的解决方案都围绕在使用'cpan'之前安装其他东西。 ...
-
我不确定我完全理解你在寻找什么,但我认为获得字体指标可能会有所帮助。 试试这个并在开始“Metrics:”的行中查找所需的所有数字: convert -debug annotate -size 720x480 -background red xc:black -fill white -stroke white -font Arial -pointsize 18 -draw "text 82,370 'Nav P1'" a.png 产量 2016-06-03T09:50:12+01:00 0:00.010 ...
-
magick图像调整大小(magick image resize)[2022-04-14]
在这里阅读原始文档带来的解决方案: image_scale(shoe,"382x509!") # format width height colorspace filesize #1 JPEG 382 509 sRGB 0 Reading the original documentation here brings the solution: image_scale(shoe,"382x509!") # format width height colorspac ... -
右对齐图像上的文本(Right align text on image)[2021-09-20]
这是一个小型SSCCE ,演示了您的问题的解决方案: import javax.swing.*; import java.awt.*; import java.awt.image.*; public class Test extends JFrame{ public static void main(String [] args){ new Test(); } private Test(){ final BufferedImage img = n ... -
-gravity救援,检查文件的例子 。 更新 :好的我误解了这个任务。 但恕我直言,你仍然可以首先创建你的数字作为图像(当然你可以自定义字体等),并修剪它: /usr/bin/convert -fill black -size 40x40 label:$NUMBERS -transparent white -trim numbers.gif 现在检查新图像的大小 /usr/bin/identify trimmed.gif 然后计算将它放置在图像上的位置。 我留给你;-) 现在,您只需将数字合并到图像 ...