Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Browser
    • Mail
    • News
    • Community
    • About
    • Register
    • Login
    • Search
    CommunityForumHelpThemesWebmail
    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Feature Requests
    3. Desktop
    4. Larger Maximum Image Size for Capture Page

    Larger Maximum Image Size for Capture Page

    Desktop
    screenshot
    3
    9
    1867
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      johnny85 last edited by Pesala

      Hello,

      I've noticed that the maximum image height of the Capture Page function in Vivaldi is limited to 30000 pixels (the rest of the page is not captured). I am using the PNG file format and I need to capture some web pages that have a height of more than 30000 pixels (typically around 60000 pixels). From what I could find on the internet the image size limit for the JPG file format is 65535×65535 and even bigger for PNG.

      Until now I've been using Snagit to capture PNGs that are around 60000 pixels in height from Firefox, but the version of Snagit that I have is not compatible with the latest version of Firefox/Chrome. The latest version of Snagit that works with Firefox/Chrome has some sort of bug and parts of the captured image are missing, so I had to install an older version of Firefox that works with my version of Snagit to be able to capture the web pages.

      If I could do the page capture in Vivaldi I could get rid of the cumbersome Snagit & Firefox solution.

      Thank you.

      Pesala 1 Reply Last reply Reply Quote 9
      • Pesala
        Pesala - Ambassador - @johnny85 last edited by Pesala

        @johnny85 The best I can offer you as a work-around for now, is capture the page, capture the areas below the 30,000 pixels, then stitch them as a vertical panorama with IrfanView.

        Messy, but it works a lot better than my FastStone Capture, which is slow on long pages, and repeats any non-scrolling elements.

        Blog • Vivaldi Review • Server Status • AMD Ryzen 5 3400G, 8 Gb • Win 10 64-bit build 19044.1889 • Snapshot 5.4.2770.3 (64-bit)

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

          The full page capture always starts from the top of the page even if I scroll down, so I can't capture two separate areas and stitch them. Using the selection capture for the remaining 30000 pixels would be a pain.

          Pesala 1 Reply Last reply Reply Quote 0
          • Pesala
            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 • AMD Ryzen 5 3400G, 8 Gb • Win 10 64-bit build 19044.1889 • Snapshot 5.4.2770.3 (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 1 Reply Last reply Reply Quote 0
              • Pesala
                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 • AMD Ryzen 5 3400G, 8 Gb • Win 10 64-bit build 19044.1889 • Snapshot 5.4.2770.3 (64-bit)

                J 1 Reply Last reply Reply Quote 0
                • pafflick
                  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? 🤔

                  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 1 Reply Last reply Reply Quote 0
                    • Pesala
                      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 • AMD Ryzen 5 3400G, 8 Gb • Win 10 64-bit build 19044.1889 • Snapshot 5.4.2770.3 (64-bit)

                      1 Reply Last reply Reply Quote 0
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      • 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