Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Mayan EDMS Mayan EDMS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 192
    • Issues 192
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mayan EDMSMayan EDMS
  • Mayan EDMSMayan EDMS
  • Issues
  • #319
Closed
Open
Created Sep 14, 2016 by Matthias Löblich@startmat✅

TransformationResize issue with very "long" image

Hi,

I have an issue with the TransformationResize calculation of the image high. With an image with

w:954, h: 6228 and an setting_display_size of : 3600

It calculates an h: 146

The generated Image by the thumbnail-function is not "nice" and not usable for OCR.

I do not understand the details of the function TransformationResize.execute_on function, but I looks like development is not finished (e.g. fit is always false).

I am happy to support if there is a short "requirements" description for this function, that I am not going into a wrong direction.

For OCR I would prefer to use the original Image-size or make the size configurable.

As an quick workaround I added "size=None" :

class OCRBackendBase(object):
    def process_document_page(self, document_page):
            logger.info(
                'Processing page: %d of document version: %s',
                document_page.page_number, document_page.document_version
            )

            image = document_page.get_image(size=None)

All inputs and suggestions welcome.

thx & br Matthias

Assignee
Assign to
Time tracking