These are chat archives for chocolatey/ChocolateyGUI

16th
Oct 2017
Rob Reynolds
@ferventcoder
Oct 16 2017 17:25
Working through this, need to validate some things about cake with you @gep13 - let me know what time is best
Gary Ewan Park
@gep13
Oct 16 2017 18:05
Not long home from our long weekend. A few things to sort out here, but then I should be able to give you a shout.
Rob Reynolds
@ferventcoder
Oct 16 2017 18:05
sounds good
installed cake and cake runner for vs code
Rob Reynolds
@ferventcoder
Oct 16 2017 18:31
@gep13 if there is a way to hook in somewhere on cake.recipe that would be best
Pascal Berger
@pascalberger
Oct 16 2017 18:37
@ferventcoder you can add a dependency to any of the cake.recipe tasks
Rob Reynolds
@ferventcoder
Oct 16 2017 18:37
in the build.cake or in setup.cake?
Pascal Berger
@pascalberger
Oct 16 2017 18:38
Like here: https://github.com/cake-contrib/Cake.Issues.Website/blob/develop/build.cake#L121 (is for the wyam recipe but principe is the same for cake.recipe)
Rob Reynolds
@ferventcoder
Oct 16 2017 18:39
Sweet
Pascal Berger
@pascalberger
Oct 16 2017 18:39
in the setup.cake
Rob Reynolds
@ferventcoder
Oct 16 2017 18:39
That's what I was thinking
Pascal Berger
@pascalberger
Oct 16 2017 18:40
unfortunately cake.recipe is not yet on the latest cake version, otherwise you could also use reverse task dependencies: https://cakebuild.net/blog/2017/10/cake-v0.23.0-released#reverse-task-dependencies
Rob Reynolds
@ferventcoder
Oct 16 2017 18:40
that would be interesting
I'm learning cake (had started looking at it but didn't make it too far). Definitely powerful
Pascal Berger
@pascalberger
Oct 16 2017 18:42
yep, especially together with something like cake.recipe
Rob Reynolds
@ferventcoder
Oct 16 2017 18:43
cake.recipe is a lot like UppercuT
in fact, I'm guessing the next major version of UppercuT will use Cake
small issue I'll need to figure out - how to sign the executable when the build results in an MSI (need to hook into the VSBuild) cc @gep13
Richard Simpson
@RichiCoder1
Oct 16 2017 19:11
I'm beginning to arrive at the conclusion that we should just not support Svg. Every converter is riddled with flaws or too heavy weight. And with Markdig.wpf, the one other main reason we took a dependency on Cef (Markdown rendering) is gone.
Gary Ewan Park
@gep13
Oct 16 2017 20:06
@RichiCoder1 I wouldn't be against ditching support
Gary Ewan Park
@gep13
Oct 16 2017 20:06
that would mean converting/grabbing any icon that uses it though
Rob Reynolds
@ferventcoder
Oct 16 2017 20:06
this one is super easy
Gary Ewan Park
@gep13
Oct 16 2017 20:07
@ferventcoder oh, wait...
you mean we can already request icons in a particular format from the gallery?
Rob Reynolds
@ferventcoder
Oct 16 2017 20:07
not from the gallery, I'm suggesting do the same as the gallery does
to convert
it's not heavyweight
Richard Simpson
@RichiCoder1
Oct 16 2017 20:08
I didn't realize it supported SVg
Rob Reynolds
@ferventcoder
Oct 16 2017 20:08
and very little in the way of flaws
Gary Ewan Park
@gep13
Oct 16 2017 20:08
gotcha
Rob Reynolds
@ferventcoder
Oct 16 2017 20:08
I meant to mention this over the weekend when I saw that
Richard Simpson
@RichiCoder1
Oct 16 2017 20:09
Let me give it a try while I'm in that code anyways
Rob Reynolds
@ferventcoder
Oct 16 2017 20:09
https://imageresizing.net/docs/v4/install not sure if it supports WPF
Kim J. Nordmo
@AdmiringWorm
Oct 16 2017 20:16
You can use imageresizer in a non-web scenario as well but you'll need to configure it through code instead of an xml file, although I've never tried it myself though.
https://imageresizing.net/docs/v4/install/non-web
we do it through straight code in the website
Richard Simpson
@RichiCoder1
Oct 16 2017 20:21
lol
@ferventcoder You also just pass svgs straight through :)
So still doesn't solve our problem
Rob Reynolds
@ferventcoder
Oct 16 2017 20:22
you can convert
just a simple example
Richard Simpson
@RichiCoder1
Oct 16 2017 20:22
Convert using what?
Rob Reynolds
@ferventcoder
Oct 16 2017 20:22
b/c SVG still works on the web
dumb question for myself, does ImageResizer support SVG?
Richard Simpson
@RichiCoder1
Oct 16 2017 20:23
Nope.
Which makes sense, because, well, svg is vector and therefore infinitely scalable.
Rob Reynolds
@ferventcoder
Oct 16 2017 20:23
there is a plugin for it
Richard Simpson
@RichiCoder1
Oct 16 2017 20:23
Is there? I couldn't find one on a quick google.
Kim J. Nordmo
@AdmiringWorm
Oct 16 2017 20:26

we do it through straight code in the website

ops, should have actually looked at the code before saying anything XD

Richard Simpson
@RichiCoder1
Oct 16 2017 20:28
@ferventcoder That's all well and good, but I still can't find the aformentioned plugin :P
About the only vageuly workable solutions I've found is A) shell out to image magick or B) invest dev hours into bringing either SkiSharp.Svg or vvvv/Svg up to spec.
Rob Reynolds
@ferventcoder
Oct 16 2017 20:39
yikes
Rob Reynolds
@ferventcoder
Oct 16 2017 20:45
yeah, so darn
Richard Simpson
@RichiCoder1
Oct 16 2017 20:56
so
uh
I found a solution
Rob Reynolds
@ferventcoder
Oct 16 2017 20:58
remove it?
or something super duper simple?
Richard Simpson
@RichiCoder1
Oct 16 2017 20:59
Nah. Turns out Magick.net (a wrapper around the ImageMagick runtime) is actually pretty darn good.
And does resizing and conversions for use.
So yah >_>
Rob Reynolds
@ferventcoder
Oct 16 2017 20:59
does it still need the executables?
Richard Simpson
@RichiCoder1
Oct 16 2017 20:59
Nope. All dlls
Rob Reynolds
@ferventcoder
Oct 16 2017 20:59
<3
Richard Simpson
@RichiCoder1
Oct 16 2017 21:01
chocolatey/ChocolateyGUI#491
It's not a small dll, but it's still much smaller than dragging around cefsharp. And it's fast
Rob Reynolds
@ferventcoder
Oct 16 2017 21:02
w00t!
@RichiCoder1 do you want to add a 0.15.1?
Richard Simpson
@RichiCoder1
Oct 16 2017 21:03
Possibly. Though first we need to get out 0.15 :P
Rob Reynolds
@ferventcoder
Oct 16 2017 21:03
already tagged
so we can move forward on the next milestone
Richard Simpson
@RichiCoder1
Oct 16 2017 21:08
Nice side effect is it drops the msi from 50something mbs to 14mb
Rob Reynolds
@ferventcoder
Oct 16 2017 21:08
I love it already