{"id":22845424,"url":"https://github.com/idealista/yatm","last_synced_at":"2025-04-28T16:44:04.408Z","repository":{"id":48565695,"uuid":"50919256","full_name":"idealista/yatm","owner":"idealista","description":"A node.js module that provides access to the VIPS library and Exiv2 in order to resize and rotate images.","archived":false,"fork":false,"pushed_at":"2021-07-20T07:01:50.000Z","size":826,"stargazers_count":11,"open_issues_count":5,"forks_count":0,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-15T03:16:38.070Z","etag":null,"topics":["exiv2","image-processing","image-processing-library","image-resizer","libvips","nodejs","thumbnail","watermarking-image"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idealista.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-02T12:32:42.000Z","updated_at":"2023-04-14T07:33:21.000Z","dependencies_parsed_at":"2022-09-26T20:01:12.231Z","dependency_job_id":null,"html_url":"https://github.com/idealista/yatm","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/idealista%2Fyatm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fyatm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fyatm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fyatm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idealista","download_url":"https://codeload.github.com/idealista/yatm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251347861,"owners_count":21575168,"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":["exiv2","image-processing","image-processing-library","image-resizer","libvips","nodejs","thumbnail","watermarking-image"],"created_at":"2024-12-13T03:17:11.220Z","updated_at":"2025-04-28T16:44:04.390Z","avatar_url":"https://github.com/idealista.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://raw.githubusercontent.com/idealista/yatm/master/logo.gif)\n\n[![Build Status](https://travis-ci.com/idealista/yatm.svg?branch=master)](https://travis-ci.com/idealista/yatm)\n[![npm version](https://badge.fury.io/js/yatm.svg)](https://badge.fury.io/js/yatm)\n\n# YATM - Yet Another Thumbnail Manager\n\nA Node.js module that provides access to the VIPS library and Exiv2 in order to resize and rotate images.\n\n- [Getting Started](#getting-started)\n\t- [Prerequisities](#prerequisities)\n\t- [Installing](#installing)\n- [Usage](#usage)\n- [Testing](#testing)\n- [Built With](#built-with)\n- [Versioning](#versioning)\n- [Authors](#authors)\n- [License](#license)\n- [Contributing](#contributing)\n\n## Getting Started\n\n### Prerequisities\n\nNode.js installed. Tested with v14.17.0.\n\nIn version 2.0.0, the support for nodejs \u003c= 8 and debian != buster is discontinued and not tested.  \n\n## Installation\n\n```\n$ npm install yatm\n```\n\nIn order to avoid external dependencies, add\n\n```\nLD_LIBRARY_PATH={{path to project/global node_modules}}/yatm/deps/lib/\n```\n\nto your Node.js environment. Usually:\n\n```\nexport LD_LIBRARY_PATH={{path to project/global node_modules}}/yatm/deps/lib/\n```\n\n## Usage\n\n* **(path)**\n\n    Set the thumb object with an input path.\n\n\n* **(buffer)**\n\n    Set the thumb object with an input buffer.\n\n\n* **resize(width,height)**\n\n    The resized values. One of both could be 0, so the result will adjust to the non zero side.\n\n\n* **rotate(rotate)**\n\n    Thumb rotation.\n\n    * Values: {0,90,180,270}\n\n* **quality(quality)**\n\n    Desired thumb quality.\n\n    * Values: {0-100}\n\n* **adjust(adjust)**\n\n    Adjusts the image to the width ('wi') or height ('he') if one of them are 0 setted. Usually setted with crop.\n\n    * Values: {'wi', 'he'}\n\n\n* **crop(crop)**\n\n    Crops the thumb if the resized result doesn't match current ratio, avoiding deformation.\n\n    * Values: {true,false}\n\n* **toBuffer(callback)**\n\n    Transform the thumb object with the desired options and returns the image as a buffer.\n\n## Testing\n\n* Unit testing\n\n```\n$ npm test\n```\n* Memory leak\n\n```\n$ ./test/memoryleak/memoryleak.sh\n```\n\n* Full testing, that creates a docker container and installs all dependencies\n\n```\n$ molecule test\n```\n\n## Built With\n\n![Ansible](https://img.shields.io/badge/ansible-2.9.14-green.svg)\n![Molecule](https://img.shields.io/badge/molecule-3.0.4-green.svg)\n![Goss](https://img.shields.io/badge/goss-0.3.16-green.svg)\n\n\n## Versioning\n\nFor the versions available, see the [tags on this repository](https://github.com/idealista/yatm/tags).\n\nAdditionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.\n\n## Authors\n\n* **Idealista** - *Work with* - [idealista](https://github.com/idealista)\n\nSee also the list of [contributors](https://github.com/idealista/yatm/contributors) who participated in this project.\n\n## License\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nThis project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealista%2Fyatm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidealista%2Fyatm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealista%2Fyatm/lists"}