Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Add support to GIPHY bot for downsampled images #276

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wpine215
Copy link

@wpine215 wpine215 commented Apr 9, 2019

Addresses #217 , adding support for fixed_height_downsampled and fixed_width_downsampled images as per the GIPHY API to provide the option of reducing GIF file size further. Replaces use_downsized with image_type to support all four image types (original image, fixed height downsampled, fixed width downsampled, and downsized).

I'm relatively new to contributing to open source projects so if there is anything I could improve upon I am welcome to feedback, thank you!


Signed-off-by: William Pine [email protected]

@@ -67,7 +67,7 @@ services:
UserID: "@goneb:localhost" # requires a Syncing client
Config:
api_key: "qwg4672vsuyfsfe"
use_downsized: false
image_type: 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer string enums to integers as strings are more descriptive without knowing the mapping.

Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, at least it didn't take a full year for a review... :)

Swap to strings please but otherwise LGTM! Please link to the respective section in Giphy's API docs which references downsized images so people know what these terms mean.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants