Fixed
Status Update
Comments
as...@chromium.org <as...@chromium.org> #2
[Empty comment from Monorail migration]
ku...@gmail.com <ku...@gmail.com> #3
I have created a patch to allow to specify the format of the screenshot in second
argument of captureVisibleTab.
This patch adds an extra argument to specify the image format(and quality of jpeg)
that breaks API compatibility.
But I think supporting PNG is worth enought to change it. According to HTML5 canvas
element
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-canvas-todataurl ,
toDataURL reuqires supporting image/png. So I think it's preferable captureVisibleTab
supports PNG too.
Please consider this patch and changing captureVisibleTab API spec.
argument of captureVisibleTab.
This patch adds an extra argument to specify the image format(and quality of jpeg)
that breaks API compatibility.
But I think supporting PNG is worth enought to change it. According to HTML5 canvas
element
toDataURL reuqires supporting image/png. So I think it's preferable captureVisibleTab
supports PNG too.
Please consider this patch and changing captureVisibleTab API spec.
aa...@chromium.org <aa...@chromium.org> #4
Thank you for the patch. I wonder if we should just change the format to always be PNG
instead of JPEG. I will try to apply this soon.
instead of JPEG. I will try to apply this soon.
ku...@gmail.com <ku...@gmail.com> #5
Thanks for your comment. I think it is reasonable that we change captureVisibleTab
signature to keep image format flexibility and extendability. If we add second
argument, it could contain a parameter for specifying the section to capture that is
needed forhttp://code.google.com/p/chromium/issues/detail?id=21375 and any other
expansions needed in future. So I hope change current signature and add second
argument for specifing various parameters.
signature to keep image format flexibility and extendability. If we add second
argument, it could contain a parameter for specifying the section to capture that is
needed for
expansions needed in future. So I hope change current signature and add second
argument for specifing various parameters.
sk...@chromium.org <sk...@chromium.org> #6
In https://crbug.com/chromium/21072#c3 , aa@chromium.org said:
> I wonder if we should just change the format to always be PNG
> instead of JPEG.
I think it is worth having both. If an extension is taking screen shots regularly
and uploading them, low quality JPEGs could be a better choice than PNGs. I know of
a firefox extension that wished to do this*. The images would be used to figure out
the last time the page visibly changed.
*http://code.google.com/p/page-speed
Sam
> I wonder if we should just change the format to always be PNG
> instead of JPEG.
I think it is worth having both. If an extension is taking screen shots regularly
and uploading them, low quality JPEGs could be a better choice than PNGs. I know of
a firefox extension that wished to do this*. The images would be used to figure out
the last time the page visibly changed.
*
Sam
aa...@chromium.org <aa...@chromium.org> #7
Great example Sam. I agree with your take.
[Deleted User] <[Deleted User]> #8
[Empty comment from Monorail migration]
[Deleted User] <[Deleted User]> #9
[Empty comment from Monorail migration]
aa...@chromium.org <aa...@chromium.org> #10
[Empty comment from Monorail migration]
aa...@chromium.org <aa...@chromium.org> #11
[Empty comment from Monorail migration]
sk...@chromium.org <sk...@chromium.org> #12
Per discussion with rafaelw, the new signature for captureVisibleTab should be:
chrome.tabs.captureVisibleTab(optional windowId, optional object options, function callback);
To implement this without breaking existing users, we need to allow the options object to be omitted. This will
require fixinghttps://crbug.com/chromium/21370 .
Sam
chrome.tabs.captureVisibleTab(optional windowId, optional object options, function callback);
To implement this without breaking existing users, we need to allow the options object to be omitted. This will
require fixing
Sam
[Deleted User] <[Deleted User]> #13
I've created a bug for the required change to extend this function in a non-breaking
way:crbug.com/29215 .
way:
aa...@chromium.org <aa...@chromium.org> #14
[Empty comment from Monorail migration]
da...@gmail.com <da...@gmail.com> #15
I notice this keeps being pushed back even though a patch has been submitted for it...
Is that because it's blocked onhttps://crbug.com/chromium/29215 ? (Note: Blocked on refers to a merged issue
which makes it look like a fixed issue)
Could something temporary be put in place incorporating the patch, and a real fix come
when 29215 is fixed?
Is that because it's blocked on
which makes it look like a fixed issue)
Could something temporary be put in place incorporating the patch, and a real fix come
when 29215 is fixed?
aa...@chromium.org <aa...@chromium.org> #16
The provided patch is a breaking change. I'm not opposed to the patch, we just can't
break the API in the process.
The patch needs to be updated to understand the old signature. This doesn't
necessarily need to block on 21370 -- I'm happy to do a few one-offs before we get
the hang of a general solution the method overloading problem.
I've removed the mstone-x, which really means "patches for this likely won't be
accepted without further design or discussion"
break the API in the process.
The patch needs to be updated to understand the old signature. This doesn't
necessarily need to block on 21370 -- I'm happy to do a few one-offs before we get
the hang of a general solution the method overloading problem.
I've removed the mstone-x, which really means "patches for this likely won't be
accepted without further design or discussion"
st...@chromium.org <st...@chromium.org> #17
[Empty comment from Monorail migration]
ph...@chromium.org <ph...@chromium.org> #18
[Empty comment from Monorail migration]
la...@chromium.org <la...@chromium.org> #19
[Empty comment from Monorail migration]
ku...@gmail.com <ku...@gmail.com> #20
It seems to be difficult to add extra argument beacause current jsonschema
implementation could not handle multiple versions of signatures which differ in
numbers of arguments without spoiling argument validation. So in this patch, change
the signature to (choices [integer windowId, object params], function callback).
This new signature could be validated with current jsonschema implementation and
even ifhttps://crbug.com/chromium/29215 was resolved in future and there is need to change the signature
to more intuitive format (optional integer windowId, optional object params, optional
function callback), new signature could be recognized as first argument is omitted
and sencond params is specified. that means there is no breaking change is required.
Please review and consider appling new patch.
implementation could not handle multiple versions of signatures which differ in
numbers of arguments without spoiling argument validation. So in this patch, change
the signature to (choices [integer windowId, object params], function callback).
This new signature could be validated with current jsonschema implementation and
even if
to more intuitive format (optional integer windowId, optional object params, optional
function callback), new signature could be recognized as first argument is omitted
and sencond params is specified. that means there is no breaking change is required.
Please review and consider appling new patch.
qu...@gmail.com <qu...@gmail.com> #21
[Comment Deleted]
qu...@gmail.com <qu...@gmail.com> #22
[Comment Deleted]
qu...@gmail.com <qu...@gmail.com> #23
Can we implement a captureTab function and deprecate captureVisibleTab? The function
should ideally be capable of capturing any rectangle on at least the current tab in any
format specified. Specifying a rectangle will reduce the need for compression and
resolve this issue leaving us with a more extendable function. This should reduce the
time needed to get this functionality included, and the existing function could later
be implemented using the new one.
should ideally be capable of capturing any rectangle on at least the current tab in any
format specified. Specifying a rectangle will reduce the need for compression and
resolve this issue leaving us with a more extendable function. This should reduce the
time needed to get this functionality included, and the existing function could later
be implemented using the new one.
sk...@chromium.org <sk...@chromium.org> #24
[Empty comment from Monorail migration]
bu...@gmail.com <bu...@gmail.com> #25
The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=43985
------------------------------------------------------------------------
r43985 | skerner@chromium.org | 2010-04-08 12:06:15 -0700 (Thu, 08 Apr 2010) | 6 lines
Changed paths:
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/base/values.h?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_function.cc?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_function.h?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_tabs_module.cc?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_tabs_module.h?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_tabs_module_constants.cc?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_tabs_module_constants.h?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/api/extension_api.json?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/tabs.html?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/renderer/extensions/extension_api_client_unittest.cc?r1=43985&r2=43984
Mhttp://src.chromium.org/viewvc/chrome/trunk/src/chrome/renderer/resources/extension_process_bindings.js?r1=43985&r2=43984
Support PNG and quality control in chrome.tabs.captureVisibleTab().
BUG=21072
TEST=ExtensionAPIClientTest.CaptureVisibleTab
Review URL:http://codereview.chromium.org/1527015
------------------------------------------------------------------------
------------------------------------------------------------------------
r43985 | skerner@chromium.org | 2010-04-08 12:06:15 -0700 (Thu, 08 Apr 2010) | 6 lines
Changed paths:
M
M
M
M
M
M
M
M
M
M
M
Support PNG and quality control in chrome.tabs.captureVisibleTab().
BUG=21072
TEST=ExtensionAPIClientTest.CaptureVisibleTab
Review URL:
------------------------------------------------------------------------
ma...@gmail.com <ma...@gmail.com> #27
I opened https://crbug.com/chromium/44758 regarding distortion/transparency within text when png format is
used.
used.
bu...@chromium.org <bu...@chromium.org> #28
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
bu...@chromium.org <bu...@chromium.org> #29
[Empty comment from Monorail migration]
is...@google.com <is...@google.com> #30
This issue was migrated from crbug.com/chromium/21072?no_tracker_redirect=1
[Multiple monorail components: Platform>Extensions, UI]
[Monorail mergedwith:crbug.com/chromium/32489 ]
[Monorail components added to Component Tags custom field.]
[Multiple monorail components: Platform>Extensions, UI]
[Monorail mergedwith:
[Monorail components added to Component Tags custom field.]
Description
chrome.tabs.captureVisibleTab currently grabs a fixed-quality JPEG, it
would be nice to be able to get a PNG (to support pixel-by-pixel lossless
analysis), and to be able to set quality of JPEGs.
See some messages in