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.
Larger Maximum Image Size for Capture Page
-
@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.
-
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; }
-
@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?
-
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?
-
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.
-
@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.
-
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.
-
@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)
-
VB-87007 "Capture of Full Page to PNG fails" - Confirmed.
Updated for 7.1 and 7.2. -