Comments (13)
Can you guide me on what I should do to be able to do that? This language is so complex haha.
from plotkicadsch.
I would like to test how this can work with Kidiff, but I need to get original images instead of the final diff.
from plotkicadsch.
If you use the internal diff, then none of the original version are generated, because this isn't the internal format used to compute the difference. If you use the external diff (which would be the good way), the versions are generated on disk, ready to be diffed, so it is just up to you to modify the diffing script in order to put both created files into their respective directories. You don't need to fiddle with the source of plotgitsch in the last case.
from plotkicadsch.
I am not aware of those internal/external diffs.
I just want to have the svg from both commits and also the final svg with the diff as the outputs of the tool.
For instance, the -k flag could save these extra 2 files for the user. what do you think?
If it is not needed to change the tool, Can you show me an example of the command line to generate these extra svgs?
from plotkicadsch.
So, I never knew I could omit -i
flag. Alright, doing this it is opening with the image with the ImageMagic tool it is creating these 2 images from_board.svg
and to_board.svg
. But ImageMagickc remains open. How can I close ImageMagick automatically or avoid it from opening? Any idea?
It displays this before opening ImageMagic
use compare (ImageMagick) between bitmaps between Git rev HEAD and Git rev HEAD~1
from plotkicadsch.
For instance, this is the output window that remains open after the operation.
IT is called from_board.svg, but it has the 3 things. from, to, and dff.
from plotkicadsch.
Hello,
Sorry to be late and not responsive. You are free to define the diffing program as you want. For instance, instead of generating the diff and displaying it, you can simply copy the svg files to another location.
Combining a call with the -i
option in order to get a diff image and one without the -i
option with a selected "comparison" program would get you the two versions and the diff.
from plotkicadsch.
Sorry, but I believe this is not right.
The -i
flag is not passing a diff tool but as a visualization tool.
For instance, your examples have this -ifirefox
then it opens the generated file which is diff_board.svg
only.
I can use the -iinkscape
for instance to open it directly on Inkcaspe.
I can also use -iecho
then it will display the parameters this -i
flag is going to take from plotgitsch
which is diff_board.svg
only.
If this -i
was considering a diff tool instead of a visualization tool it would pass 2 files, (to_board.svg
and from_board.svg
). Unless this is a bug which makes sense.
For instance, for the sake of comparison, I would like to use the textual diff
as the diff tool. Then I would use like -idiff
to have a textual diff from these 2 image files. But this wont work since it is taking only one argument.
from plotkicadsch.
Also, I would like to keep the original svgs of each board even if we don't have any diff. We could have a flag for that.
from plotkicadsch.
I was able to make a version that generates these images even if we don't see any diff.
I was not able to fix this -i flag. Opam is too complex for me. I was also able to change git-imagediff
to save/keeep 3 svgs at the end. But having this by default on this repo would be nice. At least fixing this -i
thing that is not a diff tool but a visualization tool. Or by adding another flag to be able to set the diff tool, then I would be able to make a script that saves these images instead of making the diff.
from plotkicadsch.
Sorry, I wasn't clear enough. About the diffing program, I was the referring to the case you don't use the -i option. Then the git-imgdiff
need not be the one that is provided by the project. If you override the "$PATH" environment variable and provide a git-imgdiff
of your own with the behaviour that you desire, then you can have access to svg files of both revisions.
from plotkicadsch.
Or by adding another flag to be able to set the diff tool, then I would be able to make a script that saves these images instead of making the diff.
That's a good option. I'll have a look at doing it (don't expect it soon though).
from plotkicadsch.
Sorry, I wasn't clear enough. About the diffing program, I was the referring to the case you don't use the -i option. Then the git-imgdiff need not be the one that is provided by the project. If you override the "$PATH" environment variable and provide a git-imgdiff of your own with the behaviour that you desire, then you can have access to svg files of both revisions.
Oh, ok. This makes sense. Thanks for explaining.
Alright, I am creating my version of git-diffimg
and pre-pending this on PATH.
This will work for me. Thank you one more time.
from plotkicadsch.
Related Issues (20)
- git is changing to the master branch HOT 13
- plotgitsch command performs checkout to master HOT 2
- Running on Windows HOT 7
- Limit gitplotsch scope in nested projects HOT 20
- Do not fail when a part is missing HOT 14
- Flag for generating/keeping images even if the images do not have changes
- Commit info HOT 6
- Short version of the help and version flags HOT 9
- Intermediate images do not have a transparent background HOT 6
- Exception (Invalid_argument "index out of bounds") HOT 2
- Minor details in the produced image HOT 2
- Internal error when it finds (maybe broken) symlinks HOT 18
- Keeping original files even if they don't have changes HOT 18
- Makefile - Making package
- Diffing local changes does not work when an untracked folder is into the repo HOT 9
- License type HOT 2
- Do you have a. Kicad SCH format to support KICad 6.0 HOT 3
- Plotkicadsh fails with missing components HOT 4
- plotgitsch could return 1 when at least of the commits is using the new `.kicad_sch` format
- Distro-specific issue and possible patch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotkicadsch.