{"id":22364116,"url":"https://github.com/11ways/alchemy-media","last_synced_at":"2026-01-20T23:33:01.637Z","repository":{"id":34063439,"uuid":"37849653","full_name":"11ways/alchemy-media","owner":"11ways","description":"The media plugin for storing and using user uploaded files","archived":false,"fork":false,"pushed_at":"2025-07-10T13:38:05.000Z","size":3189,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T20:55:11.362Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SCSS","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/11ways.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2015-06-22T10:34:37.000Z","updated_at":"2025-07-10T13:38:08.000Z","dependencies_parsed_at":"2023-02-13T04:30:27.604Z","dependency_job_id":"98ae7185-0430-4d21-869b-eb37e248934e","html_url":"https://github.com/11ways/alchemy-media","commit_stats":{"total_commits":151,"total_committers":4,"mean_commits":37.75,"dds":0.6490066225165563,"last_synced_commit":"3262500b0067254424b0b06e27a8d5b95011727a"},"previous_names":["skerit/alchemy-media"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/11ways/alchemy-media","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ways%2Falchemy-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ways%2Falchemy-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ways%2Falchemy-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ways%2Falchemy-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/11ways","download_url":"https://codeload.github.com/11ways/alchemy-media/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ways%2Falchemy-media/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28618802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T22:24:05.405Z","status":"ssl_error","status_checked_at":"2026-01-20T22:20:31.342Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-04T17:18:32.666Z","updated_at":"2026-01-20T23:33:01.604Z","avatar_url":"https://github.com/11ways.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alchemy Media\n\nThe media plugin for the Alchemy MVC\n\n## Installation\n\nJust installing the npm package can be done like this:\n\n    $ npm install alchemy-media\n\n## Activate\n\nYou can activate the plugin by adding this to the main `bootstrap.js` file:\n\n```javascript\nalchemy.usePlugin('media', {});\n```\n\nThe second parameter is an object containing options.\nThese are currently the default settings:\n\n```javascript\nvar options = {\n\n\t// The path to use in the url\n\turl: '/media/image',\n\n\t// Where to store the files\n\tpath: path.resolve(PATH_ROOT, 'files'),\n\n\t// Which hash function to use\n\thash: 'sha1',\n\n\t// The location of the exiv2 binary\n\texiv2: '/usr/bin/exiv2',\n\n\t// The location of cwebp\n\tcwebp: '/usr/bin/cwebp',\n\n\t// Enable webp\n\twebp: true,\n\n\t// Temporary map for intermediate file changes\n\tscratch: path.resolve(PATH_TEMP, 'scratch'),\n\n\t// The cache map for resized images \u0026 thumbnails\n\tcache: path.resolve(PATH_TEMP, 'imagecache')\n};\n```\n\n`PATH_ROOT` points to the main project folder.\n`PATH_TEMP` does not point to `/tmp`, but to the `temp` folder in the `PATH_ROOT` (main project) folder.\n\n## Use\n\nThis plugin provides you with a Hawkejs helper to resize images on-the-fly (on request, actually).\nThis is how you create an image element using an image record id:\n\n```ejs\n\u003c%= Media.image(image_id, {width: '50%'}) %\u003e\n```\n\nOr using a static image asset:\n\n```ejs\n\u003c%= Media.image('file_in_image_folder.jpg', {width: '25%', className: 'myclass'}) %\u003e\n```\n\nThe supplied width percentage isn't relative to the image itself, but to the user's screen resolution.\n\n## System dependencies\n\nYou will have to install certain packages on your system,\nyou can do so like this on Debian/Ubuntu\n\nInstall the requirements of the `veronica` module:\n\n    apt-get install graphicsmagick webp libgif-dev libcairo2-dev libpango1.0-dev libjpeg-dev librsvg2-dev\n\nThis plugin requires exiv2\n\n    apt-get install exiv2 libexiv2-dev\n\nThis plugin requires libopencv packages\n\n    apt-get install libopencv-dev\n\nThis plugin requires magick++\n\n    apt-get install libmagick++-dev","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F11ways%2Falchemy-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F11ways%2Falchemy-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F11ways%2Falchemy-media/lists"}