Remove the background from an image using Python on Linux.
Easily remove an image background using Python on Linux.
Easily remove an image background using Python on Linux.
The best prompts to use when creating images with the new Bing image creator.
Useful plugins for your browser to fix the Google Image search feature.
It is very easy to check image dimensions using the command line. Install the exiv2 package and this allows easy retrieval of image information. Just like this. ┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Pictures/phone5] └─$ exiv2 ui_icon_equipment.png File name : ui_icon_equipment.png File size : 8626195 Bytes MIME type : image/png Image size : 4096 x 4096 ui_icon_equipment.png: No Exif data … Read more
This script will encode a video file into a png image that may be shared on the Internet. This is very cool indeed, this allows a good-quality video to be shared in a relatively small image. #!/bin/env bash : ‘ usage: script.sh <input> <hres> <yres> <fps divisor> <aspect> <audio bitrate> [<output>] example: script.sh input.mkv … Read more
The Linux command line is very useful and it can even generate you a nice wallpaper image using just the shell and ImageMagick. The example below will generate a 3440×1440 pixels wallpaper image using just the random data from /dev/urandom. ┌─[jason@jason-desktop]─[~/Documents] └──╼ $mx=320;my=256;head -c "$((3*mx*my))" /dev/urandom | convert -depth 8 -size "${mx}x${my}" -resize 3440×1440\! -channel … Read more
Creating a tiled image on Linux with the command line is very easy to do. This command will take the pyramid.bmp file and tile it as a 3440×1440 widescreen image. ┌─[jason@jason-desktop]─[~/Pictures/Windows/bitmaps] └──╼ $convert -size 3440×1440 tile:pyramid.bmp Tiles.jpg┌─[jason@jason-desktop]─[~/Pictures/Windows/bitmaps] └──╼ $convert -size 3440×1440 tile:pyramid.bmp Tiles.jpg This example will create a massive 7680×2160 pixel image. ┌─[jason@jason-desktop]─[~/Pictures/Windows/bitmaps] └──╼ $convert … Read more
Emulate a Polaroid photo with the imagemagik package on Linux. convert lifeinCanberra_bg.jpg -polaroid 0 house.jpgconvert lifeinCanberra_bg.jpg -polaroid 0 house.jpg This is the original image. https://www.asis.gov.au/media/Images/Rebrand/lifeinCanberra_bg.jpg. And this is the image after manipulation. Double the size of an image, while retaining relatively good image quality. convert missile.jpg -magnify missilebig.jpgconvert missile.jpg -magnify missilebig.jpg Take a screenshot of … Read more
To view the contents of an ISO image, the isoinfo command for Linux will come in very useful indeed. Just type isoinfo -f -i myiso.iso to view the contents of the ISO image as shown in this example. C:\MEDIA\ELEMENTS\FILES\ISOS> isoinfo -f -i linuxmint-11-gnome-dvd-64bit.iso /BOOT /CASPER /EFI /ISOLINUX /MD5SUM.TXT;1 /PRESEED /_DISK /BOOT/GRUB /CASPER/FILESYSTEM.MANIFEST;1 /CASPER/FILESYSTEM.MANIFEST_DESKTOP;1 /CASPER/FILESYSTEM.SIZE;1 /CASPER/FILESYSTEM.SQUASHFS;1 … Read more
To create a video file from a wav, just use ffmpeg. This is how I created a 4k resolution video using just ffmpeg and an image file and audio wav I got off the Internet. Put both files into the same folder and then run this command. This will add two frames to the video, … Read more
It is annoying when you wish to save an image from a Facebook post and this will not work. But this is actually very easy using Firefox. Just right click on the image and select Inspect element with Firebug. Then drill down through the code until the URL to the image is found, just select … Read more
The plan9 operating system from Bell labs is a UNIX like OS that is a fun way to learn about operating systems. The installation when using the text based installer is quite counter-intuitive but this is a good learning experience. There are amd64 packages available to install your system, I had problems when installing this … Read more
Mounting an ISO image to a folder and accessing the contents of the image is very simple. Firstly we need to create a directory to mount the image to. |{/mnt/Elements/Files/ISOs}-{Fri Mar 22 23:52:17} -{john@adeptus-mechanicus } $ sudo mkdir /root/img [sudo] password for john:|{/mnt/Elements/Files/ISOs}-{Fri Mar 22 23:52:17} -{john@adeptus-mechanicus } $ sudo mkdir /root/img [sudo] password for … Read more
The linked website has an interesting post about the origins of the Linux Tux mascot and why it was chosen over the other proposed symbols to represent the freedom and superiority of the Linux kernel over other operating systems. Turns out that it was Linus Torvalds that chose this animal as he is quite fond … Read more
I was wanting to try out an older version of Ubuntu on my netbook; but I did not want to write the ISO image to a thumb drive to boot it; therefore I copied the ISO image to a subfolder of my /boot folder; /boot/iso and then I added this section to my /etc/grub.d/40_custom file … Read more
The SUSE distribution has a powerful tool for building a custom Linux distribution. SUSE Studio. This website allows you to create a Linux distribution with custom artwork and using whatever software you choose to deploy in the image. I have used this to build a live DVD ISO with the fglrx drivers slip-streamed into the … Read more
The free Clonezilla Linux distribution allows the creation and distribution of disk images allowing the Administrator of a room full of computers to create a good fresh installation of the Microsoft Windows operating system and all associated software and then to distribute that image to all other computers in the room. This will greatly simplify … Read more
For users of Adblock Plus with the Chromium web browser, and Firefox as well, if you enter the URL below as a filter, this will block all Facebook advertisements from showing. Facebook advertisements are usually used by scammers and they are rarely useful compared to the superior Adwords Google ads. facebook.com##.ego_section facebook.com##.coverPhotoImg The code above … Read more
A blind man has been fitted with a cybernetic implant, a microchip implanted on his retina, allowing him limited vision. This is the beginning of a future where the blind can see again with cybernetic implants meaning such a disability will not be permanent in the future. The implants at the moment do not have … Read more
I am typing this in Ubuntu Lucid Lynx alpha and despite the problems I had with the Nvidia drivers and having to use the driver downloaded from the Nvidia website instead of the supplied driver which failed to install, I am happy with it so far, the grub2 menu is not as slow as the … Read more