dschmidt commented on PR #3118:
URL: https://github.com/apache/tika/pull/3118#issuecomment-5518808625

   This PR or the THUMBNAIL vs RENDERING situation? 
   
   THUMBNAIL vs RENDERING: not sure what the right approach here is ... they 
are two separate dimensions really.
   Something can be the thumbnail and be rendered 🤷🏻 
   A new type THUMBNAIL_RENDERING sounds clumsy as well, I don't know
   
   Regarding this PR:
   
   This is what config would look like?
   ```json5
   {
     "presets": {
       "thumbnails": {
         "pdf-parser": {
           "imageStrategy": "RENDER_PAGES_AT_PAGE_END",
           "maxRenderedPages": 1,
           "ocr": { "dpi": 96, "imageType": "RGB" }
         },
         "emf-parser": { "renderImage": true, 
"renderOnlyEmbeddedResourceTypes": ["THUMBNAIL"] },
         "wmf-parser": { "renderImage": true, 
"renderOnlyEmbeddedResourceTypes": ["THUMBNAIL"] }
       },
       // no idea for a good name
       "thumbnails-no-ocr": {
         "pdf-parser": {
           "imageStrategy": "RENDER_PAGES_AT_PAGE_END",
           "maxRenderedPages": 1,
           "ocr": { "dpi": 96, "imageType": "RGB", "strategy": "NO_OCR" }
         },
         "emf-parser": { "renderImage": true, 
"renderOnlyEmbeddedResourceTypes": ["THUMBNAIL"] },
         "wmf-parser": { "renderImage": true, 
"renderOnlyEmbeddedResourceTypes": ["THUMBNAIL"] },
         "tesseract-ocr-parser": { "skipOcr": true }
       }
     }
   }
   ```
   
   Can we somehow ship this by default?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to