-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
allow dropping & replacing main thumbnail #238
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might also support the idea I had suggested! 😄
src/app/components/home.component.ts
Outdated
*/ | ||
droppedSomethingOverVideo(event, galleryItem: ImageElement) { | ||
const pathToNewJpg: string = event.dataTransfer.files[0].path; | ||
if (pathToNewJpg.endsWith('.jpg') && galleryItem.cleanName !== '*FOLDER*') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.JPG
.JPEG
.jPeG
? 😄
Can we support other image types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I forgot the toLowerCase()
😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with #256
main-extract.ts
Outdated
const width: number = Math.floor(height * (16 / 9)); | ||
|
||
// desired command: | ||
// ffmpeg -y -i IN.png -vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2" OUT.jpg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see .png
here!
( | ||
pathToNewJpg.endsWith('.jpg') | ||
|| pathToNewJpg.endsWith('.jpeg') | ||
|| pathToNewJpg.endsWith('.png') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, disregard last comment! 👍
Closes #206