-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Option to only use horizontal images #62
Comments
Thank you for the input! |
Hi everyone! |
Hi! const submissions = JSON.parse(message.response_body.data).data.children.filter(child => {
if (child.data.post_hint !== 'image') return false;
if (require_sfw) return child.data.over_18 === false;
if (child.data.preview.images[0].source.width < 1920) return false;
if (child.data.preview.images[0].source.height < 1080) return false;
if (child.data.preview.images[0].source.height >= child.data.preview.images[0].source.width) return false;
return true;
}); The Perhaps the best way to implement this would be to allow the user to specify constraints themselves? E.g. Edit: Hmm it doesn't seem to work after a day of usage. I'm probably missing something... |
@attilakillin Thanks for the research and sorry for the late response! Unfortunately, the most time-consuming part for me is to fiddle around with the UI as well. Also, I'd guess that you should not use the "preview" image in the response. I'd guess it is a smaller version than the actual image for displaying in the browser? |
I sometimes get vertical pictures as my background which means that only a small part of the picture is shown. It would be great to have an option to use only horizontal images. Maybe its possible to get the image size before downloading, otherwise a new picture could be selected
The text was updated successfully, but these errors were encountered: