使用Paperclip上传的原始图像如何删除Exif?

8
我有一个包含三种样式(缩略图、小尺寸、原始尺寸)图片的帖子模型。
我想从每个由paperclip创建的图片中删除exif,所以我在convert_options中使用了"-strip",但后来发现原始样式仍然存在exif。
我该怎么办才能将其删除?
has_attached_file :image, {
  styles: { thumb: ["250x250>", :jpg], small: ["125x125>", :jpg] },
  convert_options: { all: "-quality 80 -interlace Plane -strip" }
}
1个回答

6

将空字符串赋值给“original-no-exif”会使Paperclip创建一个相同大小的图像,但语法很奇怪。有没有其他替代方案? - atitan
我不这么认为。也许你甚至可以创建“原始”样式,就像这里指出的那样:https://dev59.com/p3A75IYBdhLWcg3wlqAT - roman-roman

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接