Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3233

Replace visualbrowser container with our own Dockerized Headless Browser

    XMLWordPrintable

Details

    • High
    • IMPORTANT: update docker compose files to the new pdfconverter.
    • Hide
      VisualReview plugin text reflow and text resize code moved to a separate repository.
      Visualbrowser is replaced by translate5/visualconverter image.
      Config runtimeOptions.plugins.VisualReview.dockerizedHeadlessChromeUrl is now replaced by runtimeOptions.plugins.VisualReview.visualConverterUrl
      Show
      VisualReview plugin text reflow and text resize code moved to a separate repository. Visualbrowser is replaced by translate5/visualconverter image. Config runtimeOptions.plugins.VisualReview.dockerizedHeadlessChromeUrl is now replaced by runtimeOptions.plugins.VisualReview.visualConverterUrl
    • -

    Description

      We still have problems with the visualbrowser, the backchannel-communication simply does not work in some cases, it seems the internal docker network has "hickups/dropouts" for more then 150 sec.

      The implementation should be as follows:

      • New Container similar to the pdfconverter with PHP-runtime/server and Chrome inside
      • This container takes Jobs with a zipped visual as POST and provides (currently) 2 endpoints/jobtypes: Reflow (for pdf-based visuals) and TextSize (for Image reviews) but more will come (e.g. print HTML page as PDF with chrome built in converter)
      • Parts of the T5 Code needs to be moved/implemented in the container
      • From T5s view this will work exactly like the pdfconverter

       

      Code sections to implement in the Container:

      editor_Plugins_VisualReview_Image_TextResizer::convertTargetFileWithGoogleChrome
      editor_Plugins_VisualReview_TextReflow_Converter::convertTargetFileWithGoogleChrome
      editor_Plugins_VisualReview_HeadlessChrome_Adapter

      Library needed in the Container: https://github.com/chrome-php

      Attachments

        Activity

          People

            leonkiz Leon Kiz
            axelbecher Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: