{"width":"100%","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frinruby.hatenablog.com%2Fentry%2F2022%2F04%2F27%2F114818\" title=\"rmagick\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 - \u307f\u305d\u307f\u305d\u308a\u3093\u308a\u3093blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","url":"https://rinruby.hatenablog.com/entry/2022/04/27/114818","blog_url":"https://rinruby.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/rinruby/","published":"2022-04-27 11:48:18","title":"rmagick\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081","categories":["Ruby"],"provider_name":"Hatena Blog","description":"rmagic\u4f7f\u3044\u65b9 ### \u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080 image_data = Magick::Image.read(img.path).first ### \u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8(PNG, JPG etc...) image_data.format ### \u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba image_data.filesize \u7591\u554f\u70b9 \u6700\u521d\u306f\u2193 Magick::Image.from_blob(buffer).shift \u3067\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u305f\u306e\u3060\u304c\u3001 \u300cai\u300d\u30d5\u30a1\u30a4\u30eb\u304c\u300cpdf\u300d\u5224\u5b9a\u3055\u308c\u3066\u3044\u305f .read\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u3061\u3083\u3093\u3068\u5224\u5b9a\u3057\u3066\u304f\u308c\u305f\u3088\u3093 \u539f\u56e0\u308f\u304b\u3063\u305f\u3089\u3001\u66f8\u304d\u8db3\u3057\u307e\u3059","blog_title":"\u307f\u305d\u307f\u305d\u308a\u3093\u308a\u3093blog","author_name":"rinruby","version":"1.0","image_url":null,"provider_url":"https://hatena.blog"}