Skip to content
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

[Bug]: Pipeline in watched folders is not triggered with images #1552

Closed
1 task done
TKone7 opened this issue Jul 10, 2024 · 3 comments
Closed
1 task done

[Bug]: Pipeline in watched folders is not triggered with images #1552

TKone7 opened this issue Jul 10, 2024 · 3 comments
Assignees
Labels
Bug Something isn't working

Comments

@TKone7
Copy link

TKone7 commented Jul 10, 2024

The Problem

When using the watched folder feature in combination with the img-to-pdf stage (with .png input files) the folder is not processed.

Steps to reproduce

  1. create folder for task /pipeline/watchedFolders/reproduction
  2. place the following config.json in the folder:
{
  "name": "reproduction",
  "pipeline": [
    {
      "operation": "/api/v1/convert/img/pdf",
      "parameters": {
        "fitOption": "maintainAspectRatio",
        "colorType": "color",
        "autoRotate": true,
        "fileInput": "automated"
      }
    }
  ],
  "_examples": {
    "outputDir": "{outputFolder}/{folderName}",
    "outputFileName": "{filename}-{pipelineName}-{date}-{time}"
  },
  "outputDir": "{outputFolder}",
  "outputFileName": "{pipelineName}"
}
  1. place one (or more) PNG files in the same folder

Actual behaviour
The folder is not processed at all.

Expected behaviour
The folder should be processed and the images should be converted into a PDF and placed in the output folder.

Additional
I don't understand Java very well but it seems to me the issue was introduced by #1282. It looks to me as there is a filter that only looks at PDFs.

Version of Stirling-PDF

0.25.1 until latest

Last Working Version of Stirling-PDF

0.25.0

Page Where the Problem Occurred

No response

Docker Configuration

No response

Relevant Log Output

No response

Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

  • I have verified that there are no existing issues raised related to my problem.
@frankyman88
Copy link

Having the same problem, thought I was going crazy!

@Frooodle
Copy link
Member

Will be fixed in next update!
Just stuck fixing some new bugs caused by other updates at moment so can't release

@Frooodle Frooodle added the Bug Something isn't working label Aug 3, 2024
@Frooodle Frooodle self-assigned this Aug 3, 2024
Frooodle pushed a commit that referenced this issue Aug 24, 2024
@Frooodle
Copy link
Member

finally will be fixed next udpate..

Frooodle added a commit that referenced this issue Aug 24, 2024
* fix

* cleanups!

* fix

* fix for #1552 pipeline not accepting non pdfs

* fix for #1154 font not accepting numbers etc

* Update User.java

---------

Co-authored-by: a <a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants