Jooho.image-resize
Ansible Role: Image Resize
This role helps resize an image to a specific size using the ImageMagick package with the --size option.
Requirements
yum
Role Variables
Name | Default value | Required | Description |
---|---|---|---|
input_img | sample-openshift-ori.png | no | The original image file to be resized. |
output_img | /tmp/sample-openshift-ori-resize.png | no | The path for the resized image output. |
size | 193x144 | no | The desired size for the resized image. |
overwrite_force | false | no | Set to true to overwrite an existing image. |
temp_dir | /tmp | no | Temporary directory for processing. |
Dependencies
None
Example Playbook
- name: Example Playbook
hosts: localhost
gather_facts: false
roles:
- { role: Jooho.image-resize }
# - { role: Jooho.image-resize, input_img: "original-image.png", output_img: "resize-image.png", size: "193x44", overwrite_force: "true" }
License
BSD/MIT
Author Information
This role was created in 2016 by Jooho Lee.
Informazioni sul progetto
This role help resize an image to specific size. Basically, it uses ImageMagick package --size option.
Installa
ansible-galaxy install Jooho.image-resize
Licenza
Unknown
Download
279
Proprietario