{"id":13483484,"url":"https://github.com/blocknotes/magickwand-crystal","last_synced_at":"2025-03-27T14:31:21.463Z","repository":{"id":68600470,"uuid":"77779710","full_name":"blocknotes/magickwand-crystal","owner":"blocknotes","description":"Crystal C bindings for MagickWand library","archived":true,"fork":false,"pushed_at":"2023-06-19T08:40:00.000Z","size":495,"stargazers_count":67,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-30T17:47:57.634Z","etag":null,"topics":["crystal","imagemagick","magickwand"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blocknotes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-01-01T13:23:17.000Z","updated_at":"2024-05-31T11:54:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"8cf6dd06-3e78-4a81-8e5b-0de1acaf8def","html_url":"https://github.com/blocknotes/magickwand-crystal","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fmagickwand-crystal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fmagickwand-crystal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fmagickwand-crystal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fmagickwand-crystal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blocknotes","download_url":"https://codeload.github.com/blocknotes/magickwand-crystal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245863085,"owners_count":20684786,"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":["crystal","imagemagick","magickwand"],"created_at":"2024-07-31T17:01:11.805Z","updated_at":"2025-03-27T14:31:20.926Z","avatar_url":"https://github.com/blocknotes.png","language":"Crystal","funding_links":[],"categories":["Image processing"],"sub_categories":[],"readme":"# MagickWand for Crystal - PROJECT UNMAINTAINED\n\n\u003e *This project is not maintained anymore*\n\u003e\n\u003e *If you like it or continue to use it fork it please.*\n\n* * *\n* * *\n\nCrystal C bindings for MagickWand library, an interface to use the ImageMagick image processing libraries - see [www.imagemagick.org](https://www.imagemagick.org/script/magick-wand.php)\n\n**NOTE**: Base on _ImageMagick-7.0.8-66_. MagickWand is a quite large library, if you find something missing [contact me](http://www.blocknot.es/me)\n\n## Requirements\n\n- *libMagickWand* must be installed\n- *pkg-config* must be available\n\n## Installation\n\n- Add this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  magickwand-crystal:\n    github: blocknotes/magickwand-crystal\n```\n\n## Usage\n\nGet image info:\n\n```ruby\nrequire \"magickwand-crystal\"\nLibMagick.magickWandGenesis    # lib init\nwand = LibMagick.newMagickWand # lib init\nif LibMagick.magickReadImage( wand, \"test.png\" )\n  puts LibMagick.magickGetImageWidth wand\n  puts LibMagick.magickGetImageHeight wand\nend\nLibMagick.destroyMagickWand wand  # lib deinit\nLibMagick.magickWandTerminus      # lib deinit\n```\n\nScale image and save in Jpeg format:\n\n```ruby\nrequire \"magickwand-crystal\"\n# ... lib init ...\nLibMagick.magickReadImage wand, \"test.png\"\nLibMagick.magickScaleImage wand, 320, 240\nLibMagick.magickWriteImage wand, \"test2.jpg\"\n# ... lib deinit ...\n```\n\nConvert to grayscale:\n\n```ruby\nrequire \"magickwand-crystal\"\n# ... lib init ...\nLibMagick.magickReadImage wand, \"test.jpg\"\nLibMagick.magickTransformImageColorspace wand, LibMagick::ColorspaceType::GRAYColorspace\nLibMagick.magickWriteImage wand, \"grayscale.jpg\"\n# ... lib deinit ...\n```\n\n## More examples\n\nSee [examples](https://github.com/blocknotes/magickwand-crystal/tree/master/examples) folder. There is also an example to generate an image on the fly with Kemal.\n\n## Documentation\n\nThe functions mapped have the same names of the MagickWand C library but with the first letter in lowercase.\n\nExample: `MagickWandGenesis` =\u003e `LibMagick.magickWandGenesis`\n\n- [MagickWand C Documentation](https://www.imagemagick.org/api/MagickWand/index.html)\n- [MagickWand Examples in C](http://members.shaw.ca/el.supremo/MagickWand/)\n\n## Notes\n\nBranches with different ImageMagick version:\n\n- **im_6.9.7-3**\n- **im_7.0.4-1**\n\nThe Crystal Magic Wand ! :)\n\nSounds funny but I hope you find it a useful piece of software.\n\n## Contributors\n\n- [Mattia Roccoberton](http://blocknot.es) - creator, maintainer, Crystal fan :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknotes%2Fmagickwand-crystal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblocknotes%2Fmagickwand-crystal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknotes%2Fmagickwand-crystal/lists"}