forked from jywarren/image-sequencer
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
previewgif overflow #947
Closed
Closed
previewgif overflow #947
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
16c743b
previewgif overflow
harshithpabbati 02c3f66
made the changes in css
harshithpabbati f9992d5
removed the panel old one
harshithpabbati 3b81d08
resolving conflicts
harshithpabbati 49802a0
Update demo.css
harshithpabbati 191cc6c
Update index.html
harshithpabbati 9906376
changes
harshithpabbati ffab490
changes
harshithpabbati a76b1d3
changes
harshithpabbati 81df561
Merge branch 'main' into savebtn
harshithpabbati 0a3f7a5
Delete GridOverlay.js
harshithpabbati 37e25fb
Delete Module.js
harshithpabbati 64a4bd9
Delete index.js
harshithpabbati 8afa528
Delete info.json
harshithpabbati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module.exports = exports = function(pixels, options,priorstep){ | ||
var defaults = require('../../util/getDefaults.js')(require('./info.json')); | ||
|
||
var canvas = document.createElement("canvas"); | ||
var context = canvas.getContext("2d"); | ||
canvas.width = pixels.shape[0]; //img.width(); | ||
canvas.height = pixels.shape[1]; //img.height(); | ||
for (var x = 0.5; x < canvas.width; x += 10) { | ||
context.moveTo(x, 0); | ||
context.lineTo(x, 381); | ||
} | ||
|
||
for (var y = 0.5; y < canvas.height; y += 10) { | ||
context.moveTo(0, y); | ||
context.lineTo(canvas.height, y); | ||
} | ||
|
||
context.strokeStyle = "#ddd"; | ||
context.stroke(); | ||
|
||
return pixels; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
module.exports = function TextOverlay(options,UI) { | ||
|
||
var output; | ||
|
||
function draw(input, callback, progressObj) { | ||
|
||
progressObj.stop(true); | ||
progressObj.overrideFlag = true; | ||
|
||
var step = this; | ||
if (!options.step.inBrowser) { // This module is only for browser | ||
this.output = input; | ||
callback(); | ||
} | ||
else{ | ||
var priorStep = this.getStep(-1); // get the previous step to add text onto it. | ||
|
||
function extraManipulation(pixels) { | ||
//if (options.step.inBrowser) | ||
pixels = require('./GridOverlay')(pixels, options,priorStep); | ||
return pixels | ||
} | ||
|
||
function output(image, datauri, mimetype) { | ||
|
||
// This output is accesible by Image Sequencer | ||
step.output = { src: datauri, format: mimetype }; | ||
|
||
} | ||
|
||
return require('../_nomodule/PixelManipulation.js')(input, { | ||
output: output, | ||
extraManipulation: extraManipulation, | ||
format: input.format, | ||
image: options.image, | ||
inBrowser: options.inBrowser, | ||
callback: callback | ||
}); | ||
|
||
} | ||
} | ||
|
||
return { | ||
options: options, | ||
draw: draw, | ||
output: output, | ||
UI: UI | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = [ | ||
require('./Module'), | ||
require('./info.json') | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "Grid Overlay", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh this is messy. Did you modify your main branch? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oops thats because of checkout i GUESS |
||
"description": "Overlays Grid on an image", | ||
"inputs": {} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this commented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jywarren did it in the bootstrap panel.