Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

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

Open TKone7 opened this issue 1 year ago • 2 comments

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

  • [X] I have verified that there are no existing issues raised related to my problem.

TKone7 avatar Jul 10 '24 07:07 TKone7

Having the same problem, thought I was going crazy!

frankyman88 avatar Jul 19 '24 22:07 frankyman88

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

Frooodle avatar Jul 19 '24 23:07 Frooodle

finally will be fixed next udpate..

Frooodle avatar Aug 24 '24 15:08 Frooodle