Timeline images have no data URL if canvas is wider than ~32,000 pixels #1797

Closed
opened 2013-08-10 11:42:08 +00:00 by rlx · 3 comments
Owner

This affects pandora.getLargeClipTimelineURL, pandora.getLargeEditTimelineURL and getSmallTimelineURL in editPanel.

(32,768 px at 25 fps ~= 21 min 50 sec)

This affects pandora.getLargeClipTimelineURL, pandora.getLargeEditTimelineURL and getSmallTimelineURL in editPanel. (32,768 px at 25 fps ~= 21 min 50 sec)
j added the
frontend
label 2013-08-10 11:42:08 +00:00
j added this to the 13.03 milestone 2013-08-10 11:42:08 +00:00
rlx was assigned by j 2013-08-10 11:42:08 +00:00
j added the
normal
defect
labels 2013-08-10 11:42:08 +00:00
Owner

canvas.toBlob might be an option, https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement?redirectlocale=en-US&redirectslug=DOM%2FHTMLCanvasElement#Example.3A_Getting_a_file_representing_the_canvas

not sure about browser support

canvas.toBlob(function(blob) {
    var newImg = document.createElement("img"),
        url = URL.createObjectURL(blob);
    newImg.onload = function() {
        // no longer need to read the blob so it's revoked
        URL.revokeObjectURL(url);
    };
    newImg.src = url;
});
canvas.toBlob might be an option, <https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement?redirectlocale=en-US&redirectslug=DOM%2FHTMLCanvasElement#Example.3A_Getting_a_file_representing_the_canvas> not sure about browser support ``` canvas.toBlob(function(blob) { var newImg = document.createElement("img"), url = URL.createObjectURL(blob); newImg.onload = function() { // no longer need to read the blob so it's revoked URL.revokeObjectURL(url); }; newImg.src = url; }); ```
Author
Owner

Possible workaround:

  • render small timeline via a new getSmallClipTimelineURL method, using the 16px 1fps timelines

  • in getLargeEditTimelineURL, never request full getLargeClipTimelineURLs, but only the part that is needed

Possible workaround: - render small timeline via a new getSmallClipTimelineURL method, using the 16px 1fps timelines - in getLargeEditTimelineURL, never request full getLargeClipTimelineURLs, but only the part that is needed
Author
Owner

In []changeset:pandora,3577:

#!CommitTicketReference repository="" revision="pandora,3577"
fix #1797 (canvas width has to be < 32,768)
In []changeset:pandora,3577: ``` #!CommitTicketReference repository="" revision="pandora,3577" fix #1797 (canvas width has to be < 32,768) ```
rlx added the
fixed
label 2013-08-10 14:24:45 +00:00
rlx closed this issue 2013-08-10 14:24:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#1797
No description provided.