mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 09:45:50 +03:00
[PR #242] [CLOSED] Feature/pdf support (WIP needs tests) #349
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#349
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?
📋 Pull Request Information
Original PR: https://github.com/flyimg/flyimg/pull/242
Author: @louisl
Created: 1/31/2020
Status: ❌ Closed
Base:
master← Head:feature/pdf-support📝 Commits (5)
64e528dAdded ghostscript63e02e7Added PDF mimetype and isInputPdf function488ee6aIf it's a pdf use pgae no parama640a69Added pg param for PDF5ac06b3Changed parameter name to be more generic, appends page number to cached image📊 Changes
5 files changed (+35 additions, -1 deletions)
View changed files
📝
Dockerfile(+4 -0)📝
config/parameters.yml(+2 -0)📝
src/Core/Entity/Image/OutputImage.php(+24 -0)📝
src/Core/Processor/ImageProcessor.php(+4 -1)📝
tests/Core/Entity/Image/OutputImageTest.php(+1 -0)📄 Description
RE issue #241
OK, I have the pdf version working.
This generates an image for page 1. (no page specified).
http://127.0.0.1:8080/upload/w_1024,h_1024,q_75/https://example.com/seasons.pdfAdding
pg_[n]generates a specific page. E.g. this would generate page 3.http://127.0.0.1:8080/upload/w_1024,h_1024,q_75,pg_3/https://example.com/seasons.pdfWhen the cached image is generated I'm appending '-1', '-2', '-3' etc to it depending on the page requested. No page specified defaults to appending '-1'.
I just need some advice on where/how best to set up the tests for it.
I haven't committed a PDF to test because I don't know if you have a preferred one.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.