OFFICIAL WEBSITE: lukesmith.xyz 🌐❓🔎 DONATE NOW: lukesmith.xyz/support 💰😎👌💯
Жүктеу.....
Пікірлер: 74
@avocado48775 жыл бұрын
Very pleasant clickiness to voice ratio.
@gery495 жыл бұрын
Not sure if this can be done in a single line, but I think you could execute transparent with a range of percentages (like {5..95..10}) and pipe that into sxiw to select the one that works best.
@LukeSmithxyz
5 жыл бұрын
okay, this is epic.
@gery49
5 жыл бұрын
@@LukeSmithxyz If it works. I'm just no sure if you can pipe image data out of convert like this
@AnastasisGrammenos
5 жыл бұрын
You can pass `-` as output file to send it to the standard output and then pipe it
@LukeSmithxyz
5 жыл бұрын
You would want to output them as files in /tmp and then pipe their filenames to sxiv since filenames is what it reads. I don't think a one-liner would be possible (or at least elegant), but this could be done.
@gery49
5 жыл бұрын
@@LukeSmithxyz something like: for i in {1..20..2}; do convert -transparent white -fuzz $i% $1 /tmp/$i"_"$1 done sxiv -to /tmp/*_$1 | xargs mv -t . How could I make them appear ordered by transparency tho... If I use 'seq -w' to generate zero padded variables fuzz cant take the value.
@The4Qman5 жыл бұрын
Not sure entirely how I found your channel, maybe it was through spaceinvader ones Unraid channel. But I must say, you have guided me to Arch and have opened the door to another chapter in the hobby I love. Thank you
@Echo-te1sf5 жыл бұрын
Actually if you look into the manual of imagemagick, convert command is deprecated. convert Backwards compatiblity for ImageMagick version 6 "convert". Essentually an alias to a restrictive form of the "magick" command, which should be used instead.
@ne0ne03 жыл бұрын
You're a great teacher. Thanks!
@matj125 жыл бұрын
Ideally, the transparency for every pixel should be based on the amount of white the pixel has to solve the problem with edges in antialiased images. This is done with Colors → Color to -transparency- Alpha in GIMP. Or, more ideally, store all your logos as vector graphics so you don't have to deal with JPEG artifacts and other image imperfections.
@matj12
5 жыл бұрын
@@DetectiveAndrey I looked for some of the logos he showed and I found most of them in svg format.
@saeedbaig42493 жыл бұрын
Note that -transparent only work for PNG. Luckily, you can create a PNG from a JPG easily with `convert image.jpg image.png`
@jasperzanjani5 жыл бұрын
I've had to do this a lot, and it was definitely something that drew my attention to imagemagick . Fantastic video!
@kmmmsyr98832 жыл бұрын
This is useful for stuff like logos, but it fails when there is white in the object. Let's say you want to remove whitespace from a person's photo. It will remove the whitespace, but it also removes the eyes, since they are white as well.
@wackydriver5 жыл бұрын
@Luke Smith - there is an option (in bash (zsh probably too)) to show current mode in bash's vi mode
@paxplay6925 жыл бұрын
"I actually use it all the time" - every sponsored video ever... :thinking:
@LukeSmithxyz
5 жыл бұрын
Lol yeah I'm secretly on the payroll of a decades-old free software project with a crappy plain html website. 👏
@paxplay692
5 жыл бұрын
I knew it!!!!
@JKhalaf3 жыл бұрын
Nice! Can you please do a video on how you can re-size a bunch of photos, rename them and place them inside a new folder? For example, I have a bb-king.jpg, I'd like to resize it to 60x60 pixels and move the file to a folder with the name '60px'
@mrkhoi35 жыл бұрын
Patiently waiting for the vifm video.
@101BangTons Жыл бұрын
is there any other software or web base that can automatically remove whitespace like your example? thanks
@MsDuketown4 ай бұрын
0:58 .png specification or file format. You meant size, ie. 48x48. Every webdesigner considers .png, .jpg & .ico's. The formats/specs are there for almost 30 years.
@nikolaosvakalidis2 жыл бұрын
I had used convert with sane. There was (or most likely is) a very neat trick in it. It has to with convert internal parameters. I was doing pdf to ps and ps back to pdf. From a bunch of megs the new pdf was suddenly a few kbytes! (I was using sth like 600dpi in sane)
@kaihendry5 жыл бұрын
Learned something ! Also there is www.remove.bg/
@nilspin5 жыл бұрын
I really liked your video on sed.
@veganstoiclinuxwarriormonk81875 жыл бұрын
best video ever
@pszanetti3 жыл бұрын
Great Much more easy
@soyebravat89032 жыл бұрын
Is it possible to print with imagemagick? If so what's the command?
@oddbob62305 жыл бұрын
If only this could be done with current year websites...
@4.0.4
4 жыл бұрын
Whitespace is good. You don't want a page crammed with info, or it would end up looking like a Chinese site.
@parthshah12844 жыл бұрын
How do I increase dpi?
@wild17295 жыл бұрын
Nice vifm!!!!
@zainthemaynnn3 жыл бұрын
does this still work??? I've been trying -trim all day and nothing is happening... with multiple images. it's creating a new file but that's it.
@BruceT-rg8bp2 жыл бұрын
wow you are good, thank you. Is a there a way to do it as a batch? For example, I have 50 gif files and I want to make them all transparent png files as the batch. How can I do this? thank you so much
@wemusthavechannelstocommen619
3 ай бұрын
for file in /path/to/folder/*.gif do command1 command2 ... done
@DOLGOVUSER2 жыл бұрын
very useful for batch edit! Imagine having maaaaaaaany many images to edit, export one by one. Thanks, Luke!
@mordokai597
Жыл бұрын
if you know anything about writing simple bash scripts, i use this on a tiny raspberryPi to batch-process (up to 1000 at a time) AI generated art that needs to be sorted by modify-date (oldest>newest) upscaled, antialiased, median blurred, sharpened, then moved to the "Finished" folder and delete the original after completion: #!/bin/bash cd /home/pi/Projects/IMG/ for i in {1..1000} do cd /home/pi/Projects/IMG/Holding/ n=`ls *.png --sort=time -r | head -n 1` cd /home/pi/Projects/IMG/ convert ./Holding/"${n}" -adaptive-resize 200% -antialias -blur 2x0.5 -adaptive-blur 3x0.5 -adaptive-sharpen 3x0.5 -adaptive-blur 3x0.5 -adaptive-sharpen 3x0.5 ./Finished/"${n}" rm ./Holding/"${n}" done
@tc403905 жыл бұрын
>waiting for you to make a vifm video
@wolverine96323 жыл бұрын
0:56 just in case anyone thought he uses them for icons
@itsr4yd9464 жыл бұрын
1:32 why do you have to use such an unpleasant image for an example?
@gnisitricks5 жыл бұрын
Niceee =)
@XTheMusicMakerX5 жыл бұрын
Any chance to make a video on how you sync your dotfiles to github?
hi luke for some reason magick as a command works for me but not convert i've tried online to see as well but these commands dont work for me. any idea why that could be?
@mordokai597
Жыл бұрын
depends on your OS/hardware. if you have modern windows convert is deprecated, use magic or mogrify (can be dangeroous, does in-place edits and if it crashes during an operation it can corrupt the original file) if your using linux on a desktop, convert may or may not be available, depending on distro. If youre running it on a raspberryPi like me, the distro repos ONLY host the older rpi-kernel stable version that uses convert
@Morpheus7765 жыл бұрын
INSTALL TEMPLE OS
@0M9H4X_Neckbeard
5 жыл бұрын
dead meme just like linux
@beastbum
5 жыл бұрын
@@0M9H4X_Neckbeard Just like Terry :(
@gogl0l3865 жыл бұрын
Making Memes only using Vim and Latex Episode 1
@0M9H4X_Neckbeard5 жыл бұрын
Mind you boy, that is the old Word icon: cdn.vox-cdn.com/uploads/chorus_asset/file/13588710/office_icons_HD_00007.png
@irfanatoro5 жыл бұрын
Nice thumbnail tho
@geremachek5 жыл бұрын
vifm lol
@rochr45 жыл бұрын
Oh! Just noticed your bash is not in vi mode, wtf? )
@LukeSmithxyz
5 жыл бұрын
It is.
@rochr4
5 жыл бұрын
@@LukeSmithxyz yes, thank You. I am just planning to scan some family photo albums which are pretty old and can't be 'dissasembled' and single page is to big to fit a scanner, was thinking about imagemagic to help me sew those scans together as one page will take probably four scans, imagemagic is life.
@Clutter.monkey5 жыл бұрын
Too much troll bait. I don’t know where to start.
@hixann5 жыл бұрын
remove.bg
@Solarplexus05 жыл бұрын
Are you ballsy enough to do a transmission tutorial knowing the fbi will break down your door right when you upload?
@CoWinkKeyDinkInc
5 жыл бұрын
why would they do that when the only thing we use it for is to download Linux distros? 😉
@DrathVader5 жыл бұрын
dude just install photoshop like wtf
@Apost03455 жыл бұрын
First
@1aminepro
5 жыл бұрын
We don't do that here
@raiden_is_dj
5 жыл бұрын
@@1aminepro first
@pepega3344
5 жыл бұрын
@@1aminepro you're just salty you weren't first
@mordokai597 Жыл бұрын
if you know anything about writing simple bash scripts, i use this on a tiny raspberryPi to batch-process (up to 1000 at a time) AI generated art that needs to be sorted by modify-date (oldest>newest) upscaled, antialiased, median blurred, sharpened, then moved to the "Finished" folder and delete the original after completion: #!/bin/bash cd /home/pi/Projects/IMG/ for i in {1..1000} do cd /home/pi/Projects/IMG/Holding/ n=`ls *.png --sort=time -r | head -n 1` cd /home/pi/Projects/IMG/ convert ./Holding/"${n}" -adaptive-resize 200% -antialias -blur 2x0.5 -adaptive-blur 3x0.5 -adaptive-sharpen 3x0.5 -adaptive-blur 3x0.5 -adaptive-sharpen 3x0.5 ./Finished/"${n}" rm ./Holding/"${n}" done
Пікірлер: 74
Very pleasant clickiness to voice ratio.
Not sure if this can be done in a single line, but I think you could execute transparent with a range of percentages (like {5..95..10}) and pipe that into sxiw to select the one that works best.
@LukeSmithxyz
5 жыл бұрын
okay, this is epic.
@gery49
5 жыл бұрын
@@LukeSmithxyz If it works. I'm just no sure if you can pipe image data out of convert like this
@AnastasisGrammenos
5 жыл бұрын
You can pass `-` as output file to send it to the standard output and then pipe it
@LukeSmithxyz
5 жыл бұрын
You would want to output them as files in /tmp and then pipe their filenames to sxiv since filenames is what it reads. I don't think a one-liner would be possible (or at least elegant), but this could be done.
@gery49
5 жыл бұрын
@@LukeSmithxyz something like: for i in {1..20..2}; do convert -transparent white -fuzz $i% $1 /tmp/$i"_"$1 done sxiv -to /tmp/*_$1 | xargs mv -t . How could I make them appear ordered by transparency tho... If I use 'seq -w' to generate zero padded variables fuzz cant take the value.
Not sure entirely how I found your channel, maybe it was through spaceinvader ones Unraid channel. But I must say, you have guided me to Arch and have opened the door to another chapter in the hobby I love. Thank you
Actually if you look into the manual of imagemagick, convert command is deprecated. convert Backwards compatiblity for ImageMagick version 6 "convert". Essentually an alias to a restrictive form of the "magick" command, which should be used instead.
You're a great teacher. Thanks!
Ideally, the transparency for every pixel should be based on the amount of white the pixel has to solve the problem with edges in antialiased images. This is done with Colors → Color to -transparency- Alpha in GIMP. Or, more ideally, store all your logos as vector graphics so you don't have to deal with JPEG artifacts and other image imperfections.
@matj12
5 жыл бұрын
@@DetectiveAndrey I looked for some of the logos he showed and I found most of them in svg format.
Note that -transparent only work for PNG. Luckily, you can create a PNG from a JPG easily with `convert image.jpg image.png`
I've had to do this a lot, and it was definitely something that drew my attention to imagemagick . Fantastic video!
This is useful for stuff like logos, but it fails when there is white in the object. Let's say you want to remove whitespace from a person's photo. It will remove the whitespace, but it also removes the eyes, since they are white as well.
@Luke Smith - there is an option (in bash (zsh probably too)) to show current mode in bash's vi mode
"I actually use it all the time" - every sponsored video ever... :thinking:
@LukeSmithxyz
5 жыл бұрын
Lol yeah I'm secretly on the payroll of a decades-old free software project with a crappy plain html website. 👏
@paxplay692
5 жыл бұрын
I knew it!!!!
Nice! Can you please do a video on how you can re-size a bunch of photos, rename them and place them inside a new folder? For example, I have a bb-king.jpg, I'd like to resize it to 60x60 pixels and move the file to a folder with the name '60px'
Patiently waiting for the vifm video.
is there any other software or web base that can automatically remove whitespace like your example? thanks
0:58 .png specification or file format. You meant size, ie. 48x48. Every webdesigner considers .png, .jpg & .ico's. The formats/specs are there for almost 30 years.
I had used convert with sane. There was (or most likely is) a very neat trick in it. It has to with convert internal parameters. I was doing pdf to ps and ps back to pdf. From a bunch of megs the new pdf was suddenly a few kbytes! (I was using sth like 600dpi in sane)
Learned something ! Also there is www.remove.bg/
I really liked your video on sed.
best video ever
Great Much more easy
Is it possible to print with imagemagick? If so what's the command?
If only this could be done with current year websites...
@4.0.4
4 жыл бұрын
Whitespace is good. You don't want a page crammed with info, or it would end up looking like a Chinese site.
How do I increase dpi?
Nice vifm!!!!
does this still work??? I've been trying -trim all day and nothing is happening... with multiple images. it's creating a new file but that's it.
wow you are good, thank you. Is a there a way to do it as a batch? For example, I have 50 gif files and I want to make them all transparent png files as the batch. How can I do this? thank you so much
@wemusthavechannelstocommen619
3 ай бұрын
for file in /path/to/folder/*.gif do command1 command2 ... done
very useful for batch edit! Imagine having maaaaaaaany many images to edit, export one by one. Thanks, Luke!
@mordokai597
Жыл бұрын
if you know anything about writing simple bash scripts, i use this on a tiny raspberryPi to batch-process (up to 1000 at a time) AI generated art that needs to be sorted by modify-date (oldest>newest) upscaled, antialiased, median blurred, sharpened, then moved to the "Finished" folder and delete the original after completion: #!/bin/bash cd /home/pi/Projects/IMG/ for i in {1..1000} do cd /home/pi/Projects/IMG/Holding/ n=`ls *.png --sort=time -r | head -n 1` cd /home/pi/Projects/IMG/ convert ./Holding/"${n}" -adaptive-resize 200% -antialias -blur 2x0.5 -adaptive-blur 3x0.5 -adaptive-sharpen 3x0.5 -adaptive-blur 3x0.5 -adaptive-sharpen 3x0.5 ./Finished/"${n}" rm ./Holding/"${n}" done
>waiting for you to make a vifm video
0:56 just in case anyone thought he uses them for icons
1:32 why do you have to use such an unpleasant image for an example?
Niceee =)
Any chance to make a video on how you sync your dotfiles to github?
@fleefie
5 жыл бұрын
"sudo pacman -Sy git && man git && sudo rm -rf /bin/*
YO! That girlfri...I mean keyboard is too loud!
hi luke for some reason magick as a command works for me but not convert i've tried online to see as well but these commands dont work for me. any idea why that could be?
@mordokai597
Жыл бұрын
depends on your OS/hardware. if you have modern windows convert is deprecated, use magic or mogrify (can be dangeroous, does in-place edits and if it crashes during an operation it can corrupt the original file) if your using linux on a desktop, convert may or may not be available, depending on distro. If youre running it on a raspberryPi like me, the distro repos ONLY host the older rpi-kernel stable version that uses convert
INSTALL TEMPLE OS
@0M9H4X_Neckbeard
5 жыл бұрын
dead meme just like linux
@beastbum
5 жыл бұрын
@@0M9H4X_Neckbeard Just like Terry :(
Making Memes only using Vim and Latex Episode 1
Mind you boy, that is the old Word icon: cdn.vox-cdn.com/uploads/chorus_asset/file/13588710/office_icons_HD_00007.png
Nice thumbnail tho
vifm lol
Oh! Just noticed your bash is not in vi mode, wtf? )
@LukeSmithxyz
5 жыл бұрын
It is.
@rochr4
5 жыл бұрын
@@LukeSmithxyz yes, thank You. I am just planning to scan some family photo albums which are pretty old and can't be 'dissasembled' and single page is to big to fit a scanner, was thinking about imagemagic to help me sew those scans together as one page will take probably four scans, imagemagic is life.
Too much troll bait. I don’t know where to start.
remove.bg
Are you ballsy enough to do a transmission tutorial knowing the fbi will break down your door right when you upload?
@CoWinkKeyDinkInc
5 жыл бұрын
why would they do that when the only thing we use it for is to download Linux distros? 😉
dude just install photoshop like wtf
First
@1aminepro
5 жыл бұрын
We don't do that here
@raiden_is_dj
5 жыл бұрын
@@1aminepro first
@pepega3344
5 жыл бұрын
@@1aminepro you're just salty you weren't first
if you know anything about writing simple bash scripts, i use this on a tiny raspberryPi to batch-process (up to 1000 at a time) AI generated art that needs to be sorted by modify-date (oldest>newest) upscaled, antialiased, median blurred, sharpened, then moved to the "Finished" folder and delete the original after completion: #!/bin/bash cd /home/pi/Projects/IMG/ for i in {1..1000} do cd /home/pi/Projects/IMG/Holding/ n=`ls *.png --sort=time -r | head -n 1` cd /home/pi/Projects/IMG/ convert ./Holding/"${n}" -adaptive-resize 200% -antialias -blur 2x0.5 -adaptive-blur 3x0.5 -adaptive-sharpen 3x0.5 -adaptive-blur 3x0.5 -adaptive-sharpen 3x0.5 ./Finished/"${n}" rm ./Holding/"${n}" done