• Browser
  • Mail
  • News
  • Community
  • About
Register Login
HomeBlogsForumThemesContributeSocial

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    We will be doing maintenance work on Vivaldi Translate on the 11th of May starting at 03:00 (UTC) (see the time in your time zone).
    Some downtime and service disruptions may be experienced.
    Thanks in advance for your patience.

    1. Home
    2. Desktop
    3. Desktop Feature Requests
    4. Larger Maximum Image Size for Capture Page

    Larger Maximum Image Size for Capture Page

    Desktop Feature Requests
    screenshot
    4
    13
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Pesala
      P
      Pesala Ambassador @johnny85
      last edited by Pesala

      @johnny85 Yes, if the page is much more than 30,000 pixels you would have to stitch multiple snapshots together.

      @ayespy said in Vivaldi 1.9RC 3 – Vivaldi Browser snapshot 1.9.818.40:

      @CptGuapo: It's not impossible. When they first implemented it, it was only 20,000 lines. They've already increased it by 50%. There's going to be some hard limit at some point, but possibly they will allow users to set it within some range.

      I captured a Wikipedia page of 1183 x 30955 Pixels. It is 7.17 Mbytes on disk and 104.86 Mbytes in RAM.

      Blog • Vivaldi Review • Server Status
      Win 10 64-bit build 19045.2486 • Snapshot 7.4.3683.18 (64-bit)

      1 Reply Last reply Reply Quote 0
      • J
        johnny85
        last edited by

        I've downloaded Vivaldi's source code and found the root of the problem.

        It's just a variable in extensions\api\thumbnails\thumbnails_api.cc that needs its value changed from 30000 to something like 65000, close to the maximum size permitted by the JPG file format (65535 according to Wikipedia).

        const int kMaximumPageHeight = 30000;
        
        if (capture_full_page_ == true && height_ == 0) {
            // Some sanity value so we don't capture an endless page.
            height_ = kMaximumPageHeight;
          }
        
        Pesala
        P
        1 Reply Last reply
        Reply Quote 0
        • Pesala
          P
          Pesala Ambassador @johnny85
          last edited by

          @johnny85 said in Larger Maximum Image Size for Capture Page:

          close to the maximum size permitted by the JPG file format

          I wonder if it would be a problem setting it to 120,000 or more? Long pages of text are best captured as PNG.

          If someone tried to capture a page longer than 65,535 as a JPG would it fail, or would it just be cropped?

          I guess the code could always disable the JPG option for very long pages?

          Blog • Vivaldi Review • Server Status
          Win 10 64-bit build 19045.2486 • Snapshot 7.4.3683.18 (64-bit)

          J
          1 Reply Last reply
          Reply Quote 0
          • pafflick
            P
            pafflick Vivaldi Team
            last edited by pafflick

            Just wondering: why not create several, consequential images of one page - each with a reasonable resolution - instead of creating one, huge image, which could be inconvenient to view/read anyway? 🤔

            Pesala
            P
            1 Reply Last reply
            Reply Quote 1
            • J
              johnny85 @Pesala
              last edited by

              Sorry for replying after all this time.
              I've tried creating consequential images and then combining them in a photo editor, but Vivaldi always starts the capture from the top of the page, so I always get the same 30000px high capture.

              @Pesala said in Larger Maximum Image Size for Capture Page:

              I wonder if it would be a problem setting it to 120,000 or more? Long pages of text are best captured as PNG.

              If someone tried to capture a page longer than 65,535 as a JPG would it fail, or would it just be cropped?

              I guess the code could always disable the JPG option for very long pages?

              The ideal way to do it would be to provide the users with a numeric up down box so they could set the pixel height limit, combined with an if/else statement so when a user enters a value higher than 65000px the "Save as JPG" option gets disabled (grayed out).

              This would be a unique feature for the Vivaldi browser, there are no extensions out there that can do web page captures this big in a single file. Even specialized software has problems doing it.

              Pesala
              P
              1 Reply Last reply
              Reply Quote 0
              • Pesala
                P
                Pesala Ambassador @johnny85
                last edited by

                @johnny85 said in Larger Maximum Image Size for Capture Page:

                Vivaldi always starts the capture from the top of the page

                You must use Capture Selection, not Capture Page.

                I think the simplest solution is best. Set the largest value that Vivaldi can cope with, and crop images to 65,535 if the JPG format is used. No need for any user intervention at all.

                Blog • Vivaldi Review • Server Status
                Win 10 64-bit build 19045.2486 • Snapshot 7.4.3683.18 (64-bit)

                1 Reply Last reply Reply Quote 0
                • Pesala
                  P
                  Pesala Ambassador
                  last edited by

                  The limit seem to have been increased to at least 60,000 pixels. This long page on The Municipal History of Quebec is too long, and the capture fails without any warning message.

                  This long page of 57,232 pixels, on The History of Christianity is successfully capture to JPG or PNG format.

                  Blog • Vivaldi Review • Server Status
                  Win 10 64-bit build 19045.2486 • Snapshot 7.4.3683.18 (64-bit)

                  1 Reply Last reply Reply Quote 0
                  • Pesala
                    P
                    Pesala Ambassador @pafflick
                    last edited by

                    @pafflick The largest image captured now seems to be 65,535 pixels, which works for JPG and PNG. I guess that is enough for most use cases, so this topic could be closed.

                    However, this bug remains unfixed and needs to be addressed by adding an error message: “Page limit of 65,535 pixels was exceeded.”

                    VB-100556 Capture of Long Page Fails without any Warning (Reported 7/10/2023)

                    Blog • Vivaldi Review • Server Status
                    Win 10 64-bit build 19045.2486 • Snapshot 7.4.3683.18 (64-bit)

                    DoctorG
                    D
                    1 Reply Last reply
                    Reply Quote 0
                    • DoctorG
                      D
                      DoctorG Soprano
                      last edited by

                      VB-87007 "Capture of Full Page to PNG fails" - Confirmed.
                      Updated for 7.1 and 7.2.

                      _bug hunter · Volunteer helper · Sopranos tester · Language DE,EN · ♀👵
                      Known old dragon lady: Gwen aka Dr. Gwen Agon aka GwenDragon aka DoctorGTesting


                      Linux Debian 12 KDE X11 / Windows 11 Pro
                      Intel i5-7400 / NVidia GT 710

                      1 Reply Last reply Reply Quote 0
                      • DoctorG
                        D
                        DoctorG Soprano @Pesala
                        last edited by

                        @Pesala said in Larger Maximum Image Size for Capture Page:

                        VB-100556

                        Dupe of VB-87007

                        _bug hunter · Volunteer helper · Sopranos tester · Language DE,EN · ♀👵
                        Known old dragon lady: Gwen aka Dr. Gwen Agon aka GwenDragon aka DoctorGTesting


                        Linux Debian 12 KDE X11 / Windows 11 Pro
                        Intel i5-7400 / NVidia GT 710

                        1 Reply Last reply Reply Quote 1
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        • 1 / 1
                        • First post
                          Last post

                        Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.

                        Copyright © Vivaldi Technologies™ — All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status