{"id":17794510,"url":"https://github.com/kjunichi/mruby-mrmagick","last_synced_at":"2025-03-16T20:31:22.524Z","repository":{"id":30878602,"uuid":"34436269","full_name":"kjunichi/mruby-mrmagick","owner":"kjunichi","description":"being like rmagick :) in mruby","archived":false,"fork":false,"pushed_at":"2018-03-02T23:08:04.000Z","size":143,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T13:22:11.013Z","etag":null,"topics":["imagemagick","mrbgems","mruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kjunichi.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}},"created_at":"2015-04-23T05:43:21.000Z","updated_at":"2020-06-20T12:43:54.000Z","dependencies_parsed_at":"2022-09-06T23:53:51.304Z","dependency_job_id":null,"html_url":"https://github.com/kjunichi/mruby-mrmagick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fmruby-mrmagick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fmruby-mrmagick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fmruby-mrmagick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fmruby-mrmagick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kjunichi","download_url":"https://codeload.github.com/kjunichi/mruby-mrmagick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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":["imagemagick","mrbgems","mruby"],"created_at":"2024-10-27T11:16:44.488Z","updated_at":"2025-03-16T20:31:22.014Z","avatar_url":"https://github.com/kjunichi.png","language":"Ruby","readme":"# mruby-mrmagick   [![Build Status](https://travis-ci.org/kjunichi/mruby-mrmagick.png?branch=master)](https://travis-ci.org/kjunichi/mruby-mrmagick) [![Build status](https://ci.appveyor.com/api/projects/status/8ay7ic4abok7bjg2/branch/master?svg=true)](https://ci.appveyor.com/project/kjunichi/mruby-mrmagick/branch/master)\n\nImageMagick binding for mruby.\n\nI don't know or use the whole ImageMagick library.\nI have deliberately let some modules out of these bindings in order to focus on parts I understand and/or have a need for.\n\n## install by mrbgems\n\n- add conf.gem line to `build_config.rb`\n\n```ruby\nMRuby::Build.new do |conf|\n\n    # ... (snip) ...\n\n    conf.gem :mgem =\u003e 'mruby-mrmagick'\nend\n```\n\n## example\n\n```ruby\nimg = Mrmagick::ImageList.new(\"sample.png\") # read image file.\nnew_img = img.blur_image(0.0, 8.0) # returns new image which bluerd.\nnew_img.write(\"blur.jpg\")\n```\n\n```ruby\nimg = Mrmagick::ImageList.new(\"sample.jpg\") # read image file.\nnew_img = img.scale(0.5) # returns new image which scaled.\nnew_img.write(\"half.png\")\n```\n\n```ruby\nimg = Mrmagick::ImageList.new(\"sample.png\") # read image file.\nimg2 = img.blur_image(0.0, 8.0) # returns new image which bluerd.\nimg3 = img2.scale(4) # returns new image which scaled.\nimg3.write(\"blur_x4.jpg\")\n```\n\n```ruby\nimg = Mrmagick::ImageList.new(\"sample.jpg\") # read image file.\nimg.get_exif_by_entry('GPSLatitude')\n\n```\n\n```ruby\nimg = Mrmagick::ImageList.new(\"sample.jpg\") # read image file.\nimg2 = img.blur_image(0.0, 8.0) # returns new image which bluerd.\nFile.open(\"blob.jpg\", \"wb\") {|f|\n  f.print img2.to_blob\n}\n```\n\n```ruby\nimg = Mrmagick::ImageList.new(\"sample_with_exif.jpg\")\nimg.orientation # =\u003e 2\nimg = img.auto_orient\nimg.write(\"sample_ao.jpg\")\nimg = Mrmagick::ImageList.new(\"sample_ao.jpg\")\nimg.orientation # =\u003e 1\n```\n\n## See also\n- [How to build one binary using with mruby cli](https://github.com/kjunichi/mruby-mrmagick/wiki/How-to-build-one-binary-using-with-mruby-cli)\n- [How to build h2o with mruby-mrmagick](https://github.com/kjunichi/mruby-mrmagick/wiki/How-to-build-h2o-with-mruby-mrmagick)\n- [Rubyist Magazine - RedDotRubyConf 2015 レポート](http://magazine.rubyist.net/?0051-RedDotRubyConf2015#l7)\n- [ngx_mrubyを使った簡単な画像変換サーバを数分で実装してみた - 人間とウェブの未来](http://hb.matsumoto-r.jp/entry/2015/05/13/234326)\n\n## License\nunder the MIT License:\n- see LICENSE file\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjunichi%2Fmruby-mrmagick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjunichi%2Fmruby-mrmagick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjunichi%2Fmruby-mrmagick/lists"}