{"version":"1.0","author_name":"onsanai","provider_url":"https://hatena.blog","url":"https://phst.hateblo.jp/entry/2024/06/26/080000","blog_title":"\u7269\u7406\u306e\u99c5 Physics station by \u73fe\u5f79\u7814\u7a76\u8005","provider_name":"Hatena Blog","published":"2024-06-26 08:00:00","type":"rich","image_url":null,"author_url":"https://blog.hatena.ne.jp/onsanai/","title":"Python: PNG\u5f62\u5f0f\u306e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306eDPI\u3060\u3051\u30d0\u30a4\u30ca\u30ea\u3067\u66f8\u304d\u63db\u3048\u308b","categories":["Python","\u81ea\u708a"],"height":"190","blog_url":"https://phst.hateblo.jp/","description":"JPG\u5f62\u5f0f\u306e\u8a18\u4e8b \u3068\u57fa\u672c\u7684\u306b\u306f\u540c\u3058\u3067\u3042\u308b\u3002 \u9055\u3044\u306f\u7269\u7406\u30b5\u30a4\u30ba\u6307\u5b9a\u306e\u5358\u4f4d\u304c JPG\u3067\u306fDPI (dots per inch) \u3067\u3042\u308b\u306e\u306b\u5bfe\u3057\u3066\u3001PNG\u3067\u306fPPM (pixels per meter) \u3067\u3042\u308b\u3053\u3068\u3001\u30c1\u30e3\u30f3\u30af(\u30bb\u30b0\u30e1\u30f3\u30c8)\u3054\u3068\u306bCRC-32\u306e\u5de1\u56de\u5197\u9577\u691c\u67fb\u304c\u3042\u308b\u306e\u3067\u305d\u308c\u3092\u66f8\u304d\u63db\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3067\u3042\u308b\u3002 \u4ee5\u4e0b\u3001PNG\u5f62\u5f0f\u306e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e\u7269\u7406\u30b5\u30a4\u30ba\u3092A4\u306e\u6a2a\u5e45\u306b\u3059\u308b\u30b3\u30fc\u30c9\u3002 def parse_png(file_path): with open(file_path, 'rb') as file: data = file.read() i = 0 signature = data[i:i+\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphst.hateblo.jp%2Fentry%2F2024%2F06%2F26%2F080000\" title=\"Python: PNG\u5f62\u5f0f\u306e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306eDPI\u3060\u3051\u30d0\u30a4\u30ca\u30ea\u3067\u66f8\u304d\u63db\u3048\u308b - \u7269\u7406\u306e\u99c5 Physics station by \u73fe\u5f79\u7814\u7a76\u8005\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%"}