mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 09:45:50 +03:00
[GH-ISSUE #241] Question - I'm adding support for PDF's and Movies in a fork #717
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#717
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @louisl on GitHub (Jan 30, 2020).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/241
Originally assigned to: @sadok-f, @baamenabar on GitHub.
Thanks for the repo, it's good work.
I'm working on a fork of this to support PDF's and movie files, are you interested in a PR for it or would you rather me keep it separate?
PDF support (ghostscript) is almost done. It has one new param to choose a page number.
Movie support (ffmpeg) - not started yet. I'm planning to add a param to choose the time mark for to take the image from.
@sadok-f commented on GitHub (Jan 31, 2020):
Hi @louisl !
Many thanks for supporting Flyimg project, we'd love to have your new features in our project.
Please create a PR for each feature and we'll be happy to review it and have you in our contributors list.
@louisl commented on GitHub (Jan 31, 2020):
Hi @sadok-f
As I needed to change things in the same files for both features I closed one PR and did one PR for both features. I did it in a way that wouldn't break backwards compatibility and the changes are fairly minimal. I guess the install of ghostscript and ffmpeg could be optional depending if people wanted these features.
The movie file for tests I got from https://www.sample-videos.com and the pdf I made from a Pages template so no copyright issues.
I'll be putting this in a staging environment for one of my jobs Monday would be nice if it makes it into the core project.
Let me know what you think.
@sadok-f commented on GitHub (Feb 4, 2020):
Hi @louisl !
Thank you for your contribution to Flyimg!
I'm gonna keep the issue open until the link in the documentation got fixed.
For the video you can use the direct link
https://www.sample-videos.com/video123/mp4/720/big_buck_bunny_720p_2mb.mp4instead ofhttps://m0.cl/t/SampleVideo_1280x720_2mb.mp4Same for the PDF
@louisl commented on GitHub (Feb 4, 2020):
You're welcome, thanks for the project and your help with the PR.
I'll make the changes to the README, to use the video link, we need to find a hosted PDF or alternatively host the one I made for the tests somewhere. Any suggestions?
@sadok-f commented on GitHub (Feb 4, 2020):
I uploaded them to flyimg.io server:
@louisl commented on GitHub (Feb 4, 2020):
Both are failing for some reason. I'm out of time right now, will look later tonight.
https://oi.flyimg.io/upload/w_200,h_200,pg_1/https://oi.flyimg.io/lighthouses.pdf
https://oi.flyimg.io/upload/w_200,h_200,tm_00:00:05/https://oi.flyimg.io/big_buck_bunny_720p_2mb.mp4
@sadok-f commented on GitHub (Feb 4, 2020):
My bad I didn't update the docker image on the server, just did now.
It works perfectly!
@louisl commented on GitHub (Feb 4, 2020):
No problem, PR #247 should complete this. Thanks again for your help.
@sadok-f commented on GitHub (Feb 5, 2020):
Closing the issue.
Thank you @louisl for the great work!