Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
MIT License
39.96k stars 3.14k forks source link

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

Closed TKone7 closed 2 weeks ago

TKone7 commented 1 month ago

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}"
    }
  3. 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

frankyman88 commented 1 month ago

Having the same problem, thought I was going crazy!

Frooodle commented 1 month ago

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

Frooodle commented 2 weeks ago

finally will be fixed next udpate..