{"id":19300797,"url":"https://github.com/takuya/ruby-mail-attachment-tiff","last_synced_at":"2025-02-24T01:27:41.625Z","repository":{"id":261938319,"uuid":"870531969","full_name":"takuya/ruby-mail-attachment-tiff","owner":"takuya","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-13T11:15:09.000Z","size":1533,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T22:43:55.028Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-10T08:03:26.000Z","updated_at":"2024-12-13T11:15:13.000Z","dependencies_parsed_at":"2024-11-25T15:31:06.317Z","dependency_job_id":"8ecb62e7-f629-4c66-90a8-2e16ce08a5a5","html_url":"https://github.com/takuya/ruby-mail-attachment-tiff","commit_stats":null,"previous_names":["takuya/ruby-mail-attachment-tiff"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fruby-mail-attachment-tiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fruby-mail-attachment-tiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fruby-mail-attachment-tiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fruby-mail-attachment-tiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/ruby-mail-attachment-tiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240402635,"owners_count":19795775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T23:15:50.900Z","updated_at":"2025-02-24T01:27:41.584Z","avatar_url":"https://github.com/takuya.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## オフィス用複合機のTIFFファイルを処理する。\n\n自宅にある複合機はSMTP機能がある。ただし、スキャンとFAXはTIFFで処理される。\n\nところが、TIFFに写真が複数枚含まれるマルチパート（ページ）のTIFFファイルで、一部のメールソフトのプレビューでは見れない。\n\n特に問題なのが、複数枚が想定されてないため、最初の１枚しか見えない点である。\n\nそこで、メール内容を変更して、マルチページTIFFを複数枚PNGにかえて送信する。\n\nGmailでTIFF表示すると、複数枚のTIFFを見落としがちだったので、このファイルを作った。\n\nSMTPをプロキシしてTiffファイルをpngに変換して送信する。\n\nTIFF複数枚が表示できないことが発端。\n\nいまのGmailは複数枚でも問題なく表示できるので、不要になった。\n\n\n### install as gem\n```shell\n[ -e Gemfile ] || bundle init \nREPO_URL=https://github.com/takuya/ruby-mail-attachment-tiff.git\necho \"gem 'takuya-ruby-mail-attachment-tiff', git: '$REPO_URL'\" \u003e\u003e Gemfile\nbundle install \n```\n\n### testing\n```shell\ngit clone https://github.com/takuya/ruby-mail-attachment-tiff.git\ncd ruby-mail-attachment-tiff\nbundle install \nbundle exec rspec spec\n```\n\n## ハマりどころ\n\nimage magick の convert で mutipage な tiff を 扱う場合 `+repage`をつける。 \n\nつけないと`negative image positions unsupported` となり変換できているのにエラーになり、変換できているのにmini-magickが例外で落ちる。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fruby-mail-attachment-tiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fruby-mail-attachment-tiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fruby-mail-attachment-tiff/lists"}