scrot and import are two commands, which can be used to take screenshot in terminal on Linux and FreeBSD:
To use scrot cmd to take screenshots on Ubuntu and Debian the scrot package has to be installed:
noah:~# apt-get install scrot
scrot should also be available on most other Linux distributions in the main repositories, I'll be glad to hear if someone has used it on Fedora, SUSE etc.
On FreeBSD, there is a port called scrot , to install on FreeBSD:
freebsd# cd /usr/ports/graphics/scrot
freebsd# make install clean
Scrot has plenty of nice arguments one can use to make a screenshot. Maybe the most handy one in my view is after a preliminary set delay before screenshot is taken.
To take screenshot with it after lets say 5 seconds delay before the screenshot:
hipo@noah:~/Desktop$ scrot -t 20 -d 5
To put an year, month and day and year followed by screen resolution with scrot :
hipo@noah:~$ scrot '%Y-%m-%d_$wx$h.png'
Another way to take a screenshot of screen with command is by using ImageMagick's – import image manipulation package. To take screenshot of the current screen via terminal using import , type in xterm, gnome-termina or Gnome's Run Application (ALT+F2)
hipo@noah:~$ import -window root ScreenShot.png
To make import command to save the taken screenshot in a format (minute:hour:day:month:year)i :
To use take_screenshot_every_60_secs_import.sh just issue the script inside xterm or gnome-terminal, after that simply use your computer as you normally would. The script will take snapshots every minute and store all taken screenshots in Screenshots dir.
If you prefer to use scrot to take automatically the screenshots every lets say 5 minutes, you can use a script like:
# 300 secs (5 mins)seconds='300';
if [ ! -d "$screenshot_dir" ]; then
while [ 1 ]; do
(scrot $screenshot_dir/'%Y-%m-%d_$wx$h.png') &
The script using scrot is better in terms of efficiency, the system load scrot will put on your machine will be less. Using some of this scripts will be handy if you need screenshots to Movies, Programs and favourite Free Software games. Hope this is educative to someone 😉
After installing latest Debian Wheezy Linux on my Lenovo Thinkpad Notebook. One of first packages after very basic GNOME install was of course GIMP.
I edit images with GIMP mostly on daily basis, so life without GIMP is impossible… Debian 7 comes with shiny new version of GIMP – GIMP 2.8. So far so good, but the problem is when started it for a first time, the default configuration is made in a way that it miss essential Gimp Panel Window (The Toolbox Window). Missing Brushes and selectors, move, scissors etc. is something really terrible.
My first guess was I can display it somehow from GIMP's View menu but after few minutes of try/errs I figured out this is not possible.
One menu I managed to displayed Toolbox in some mostly unusubale form, since they were not fitting well my 1024×768 resolution screen is via menus:
Windows -> Toolbox
Since this wasn't what I was looking for I spend some 10 minutes until I finally found "the fix". from menus:
I've been a facebook hater, since the early days of Facebook. Many people were curious why I hate facebook so much. I didn't have a clear stance on what really makes me be so negatively attituded towards facebook. It was like my common intuition pointing me to the idea, that facebook is not a good thing. Nowdays a lot of people come up with curious materials concerning facebook. Like take for example the facebook muddy history.
The creator of facebook Mark Zuckerberg a jewish with his other Latino-American Jewish friend (Eduardo Saverin), give the birth of facebook a completely non-respective social and human privacy and physical community or other community networks. It is just an attempt to eat up all the other ways of communication on the internet.
Perphaps it is not a co-incidence that the largest currently internet search engine Google is also co-founded by two persons who are of Jewish origin Sergey Brinn (A Russian Jewish) and Larry Page another jewish.
Two years ago a movie was out called "The Social Network", re-telling part of the truth on how facebook came to existence and exposing the real motive of fb creator, as well as exposing how the mastermind creator Mark Zuckerberg has actually stolen large portion of the facebook project programming code from another project aimed to create a college people connections network.
The movie points out that Zuckerberg has also created the whole social network for the sake of stealing people's data as a pure social engineering (crackers knows pretty well on this methodology for few decades from now).
His initial motives to create the facebook thing was then obviously bad. Since the initial motive for facebook was bad I personally believe what will follow from it will not be good neither. Jesus Christ said in the Holy Bible , "no good tree, gives a bad fruit". Obviously facebook came from a rotten tree, a person who was a criminal minded wanted to take a control over people's data voluntarely. Back in the days of communism people were spyed on in various ways through people hired for this purpose, the secret agents (existed as the communist spy people equivalent) in the "democratic" world back then.
What facebook and other internet projects online done is remove the necessity for someone following and spying on you. The national security agencies probably came with the better idea to convince people to self-spy on themselves all day long through internet use (search engine look-ups in Google), facebook sharing pictures and personal thoughts and ideas etc. etc….
I've spotted an interview with Mark Zuckerberg founder, where he started sweatening, when he was questioned by the interviewer a questions towards privacy. From the Interview it doesn't appear Zuckerberg to be a big mastermind as many people claimed him to be too genious. In the interview in my personal view he looks like an young lost boy, who lost his way in life.
How then, can the creation of such a guy be something extraordinary or useful. How can such a guy create something huge as facebook, mostly by himself as claimed?? Besides that curiously even though Mark Zuckerberg claims he is atheist, he is a member of a jewish fraterminty (check in wikipedia if you don't believe me). Why is this guy a member of a jewish fraternity if he is out of Jewish religion??? To be more concreate the exact fraternity, where Zuckerberg is membering is called Alpha Epsilon Pi. It is not some kind of secret that Jewish people hate Christians and especially rejected historically Jesus Christ as the saviour Messiah the King of Jewish as promised in the old testamential writtings.
It is also not secret that many of the jewish people and brotherhoods, gave birth to many occult and essoteric religions like Kabalah. For those who still are dis-believing about how big liar Mark Zuckerberg is by claiming he doesn't have a religious belief check out the emblem of the Jewish Fraternity he is an official and respected member in:
Okay lets make a quick evaluation, of the fraternity logo. We see an Alladin like lamp, which is a symbol of mysticism and magical powers. Next we see on the left a symbol which is commonly seen in the western Europe world and I assume is some kind of masonic symbol as well as has some significance for Judaism (too probably). The book as you can see clearly shows a skull. So it is more than logical, the book this "fraternity" is leaded by is a book of death (the contrary to the book of light which the Holy Bible is)… The lion itself is an ancient Judaism symbol and according to our Christian beliefs is considered a symbol for the Messiah to come (which the jewish still await and rejected 2000 years ago). We Christians know the Messiah is exactly Jesus Christ and he has been already in the world on humanity saving mission in a human flesh. On top of the Lion, one sees the Jewish Star (six angled star of David), surrounded by the classical Jewish Menora (Candle lights). Well its more than obvious that then Mark Zuckerberg lies brutally that he is an atheist, I don't believe an atheist will have something to do with jewish fraternity or any kind of faith having fraternity at all.
Could it be that this same fraternity, gave money to Zuckerberg to create the facebook site?? I think it is quite probable! Otherwise one man or even a whole company cannot raise such a big website as facebook it is simply impossible. Someone might think, "God has bless him because he is jewish", but a seriously doubt it is God who blessed him. You will wonder why, I think facebook is not the work of God, well simple. God doesn't want to help anti-Christs. This fraternity brotherhood by rejecting God's only begotten son Jesus Christ is clearly anti-Christian. This is probable the top of the iceberg and there is plenty of other info about facebook we the normalpeople don't know … In below interview you can see Mark Zuckerberg removes his sweater and shows its back contaning a picture exposing facebook organizational philosophy What we can see on the back you see in the picture below:
The logo reads in the middle making the "MAKING THE WORLD OPENED AND CONNECTED". Lets evaluate on that. Obviously facebook mission is to make the world more opened and connected. But lets dig up in this openness and connectioness? Who wants to make the world more open and connected and Why would someone want to make the world more open and connected and what this will bring as benefits or better said who will benefit out of that??
Well obviously not the people part of facebook, neither I see Zuckerberg to be too much opened and connected,I don't see in his facebook profile to have reveled too much sensitive information about himself. Or even the pictures he uploaded in his "official website" are way less than the pictures uploaded by millions of other I will call them "deceaved" poor facebook users.
If really Zuckerberg was so much careful for openness, he would have started with opening himself and putting more data online on what is happening in his life and how he generally lives his days. Wouldn't he??
If the mastermind of an idea is not living the idea, why should we follow or believe his ideas? Isn't that a huge deception. If a deceiver is the founder of an organization, why should we as a community and people stand up and help it by using it as communication media?? Lets continue on with my thinking who have interests of making publicly every people's information online?? One organization that has this interest of people to be more opened and connected I can think is (Federal Bureau of Investigations) FBI.
Could it be FB I to have sponsored facebook and used Zuckerberg as a public person to represent something he did not thought or wanted at all after being carefully brainwashed??
Well I believe this speculation might be not far from truth. Now let me continue with the Analysis of the facebook hoodie insignia slogan, goals and values. In the center of the hoodie insignia facebook logo, we can see the few degrees in turned Jewish Star. I used a jewish star obtained from the Internet and Used "the GIMP" free graphic manipulation tool to change the jewish star angle and put it along with the facebook hoodie insignia in order to just show to people, how facebook even contains the start of David embedded within their slogan:
Is it just a coincidence, the jewish star is inside the main logo of facebook used to be placed on everyone within facebook organization on their back sweaters?? Well I don't think so. Just to compare, many Orthodox Christian Monks, wear the sign of the Cross (The Crucifix) on their back. Most commonly the crucifix is wear on back byschimonks For all those interested on a typical dress our Orthodox Christian schimonks wear check the post some of the most important symbols for Orthodox Christianity
Continuing to evaluate on the logo, one can see the little man and the +1 with, do you remember Google +1?? Hmm Google is also founded by Jewish does the +1 have some kind of special significance for the Jews? I'm not a jew so I can't say but obviously this doesn't seem like a pure coincidence, just like it doesn't seem like a pure coincidence, the ICQ messanger is owned by Jewish people …
Mark Zuckerberg gets hot under the collar over your privacy issues and sweats
Seeing the interview, do you believe Zuckerberg is really a genious as he often pushed in the news and has the brain potential to create a tight organization like facebook?? Do you think his facebook is done to benefit us Christians, I don't think so. My view is Making the World more opened and connected is simply an exposure of the huge Jewish complex through the centuries of being closed community.
The Truth Behind the Secret Facebook
Historically Jewish were rejected by the nations often for being little closed community . They were not accepted as a normal persons in many countries for many years (in most west world not accepted before about the 16th century), because they were considered responsible for the Crucifixion of our Lord Jesus Christ. As a consequence my view is they got this complex that they want to be accepted and be part of the non-jewish community. This centuries developed complex of not being accepted within society is clearly shown in modern jew works. Take for example globalization, many of the most fierce globalists are jewish. Many of the political zionists are jewish too. Political zionism as a movement has also been started by jews. One of the main things one should hate globalism for is, cause globalism is destroying local culture and nations and creating a pseudo culture and pseudo nation in the same way as Babylonians in the old testament started building the tower, which tried to reach heaven and put aside over God's throne. Globalism should be resisted, somehow. Its my strong conviction that believing Christian should depart from Facebook. Go out of the spiritual babylon which this facebook anti-social network is proclaiming. If you're Christian and have a facebook account close it right away and join some nice Christain community. Don't let a pseudo communication over the internet to destroy your life and community. At the end Facebeook is not created to help you and unite you. It is created to separate you and divide you by "fakely proclaimed openness and connectivity". My stand point is there could not be any openness or connectivity better than a face to face physical communication. At the end computers are just an imitation of real life, real people and real world communication.
Default XFce picture viewer on Slackware Linux is GIMP (GNU Image Manipulation Program). Though GIMP is great for picture editting, it is rather strange why Patrick Volkerding compiled XFCE to use GIMP as a default picture viewer? The downsides of GIMP being default picture viewing program for Slackware's XFCE are the same like Xubuntu's XFCE risterroro, you can't switch easily pictures back and forward with some keyboard keys (left, right arrow keys, backspace or space etc.). Besides that another disadvantage of using GIMP are; a) picture opening time in GIMP loading is significantly higher if compared to a simple picture viewer program like Gnome's default, eye of the gnome – eog.
b) GIMP is more CPU intensive and puts high load on each picture opening
A default Slackware install comes with two good picture viewing programs substitute for GIMP:
Both of the programs support picture changing, so if you open a picture you can switch to the other ones in the same directory as the first opened one. I personally liked more Gwenview because it has more intutive picture switching controls. With it you can switch with keyboard keys space and backspace
To change GIMP's default PNG, JPEG opening I had with mouse right button over a pic and in properties change, Open With: program.
If you're curious about the picture on on all screenshots, this is Church – Saint George (situated in the city center of Dobrich, Bulgaria). St. Georgi / St. George Church is built in 1842 and is the oldest Orthodox Church in Dobrich. In the Crimean War (1853-1856) the church was burned down and was restored to its present form in 1864.
gpicview is another cool picture viewing program, I like. Unfortunately on Slackware, there is no prebuild package and the only option is either to convert it with alien from deb package or to download source and compile as usual with ./configure && make && make install . Downloading and compiling from source went just fine on Slackware Linux 13.37gpicview has more modern looking interface, than gwenview and geeqie. and is great for people who want to be in pace with desktop fashion 🙂
Often when, you do something on your PC, you need to make a quick screenshot of a screen area.. Yes GNOME's feature to take complete screenshots of Screen with Print Screen SysRQ and consequential picture edit with GIMP is one way, but this is far away from quick. This method to chop out of a complete display screenshot usually takes from 40 secs to 1 minute to properly cut and save a selection of the whole picture. Another common use, that I love in GNOME is the ALT + Print Screen SysRQ key combination. alt+ print scr sysrq is handy while taking a single window screenshot is desired. Anyways often you only need to make a screenshot of a tiny area of the screen. Many people might think this is not possible currently in GNOME, but they will be wrong as there are no impossible but hard things to achieve on Linux / FreeBSD 😉
There are at least two ways using a predefined command for taking quick area screen snapshot.
1. Taking quick area screenshot by using ImageMagick's import command
To use import you will need to have installed ImageMagick – swiss army knife of command line image manipulation 😉 For area screenshot with import, press ALT+F2 and type inside Run Application box:
import -frame screenshot.png
Now make the selection of the exact screen area you would like to screeshot in file screenshot.png Note that screenshot.png file will be saved by default in your home directory as it is read from $HOME shell variable:
hipo@noah:~$ echo $HOME/home/hipo
hipo@noah:~$ ls -al screenshot.png
-rw-r--r-- 1 hipo hipo 4950 Mar 14 21:11 screenshot.png
You see my $HOME equals /home/hipo, therefore screenshot.png just grabbed is saved in there.
One downside of taking the screenshot with import is that picture snapshot is not further edittable, if it has to be further processed with GIMP or some other graphic editor program.
In the screenshot, below I show you one screen area of my XMMS taken with import -frame screenshot.png cmd:
Trying to open the screenshot.png, file with GIMP displays the following error in GIMP:
Not all area snapshots taken with import -frame, create this issue sometimes screenshots are opening in GIMP but only area of the screenshot.png is visible in gimp.
Thanksfull, there is work around to this issue by converting the import generated PNG format picture to JPEG with ImageMagick's convert and then edit the .JPEG with GIMP etc.:
Hence to permanently work around it, in case you intend to apply (GIMP modifications), once area snapshot is made instruct import to save its output picture in .jpeg, e.g.:
hipo@noah:~$ import -frame screenshot.jpeg
2. Taking quick area screenshot using gnome-screenshot cmd
Once again invoke the GNOME command Launcher by pressing Alt+F2 (holding alt and pressing F2) and type in the launch box:
Below is a small area from my desktop, chopped with gnome-screenshot 🙂
You see on above screenshot a tiny (picture) icon one of the greatest, if not the greatest bulgarian saint – saint John of Rila. St. John's lived as hermit for many years in Rila mountain and by God's grace possessed incorruptable body. His incorruptable body is still kept and can be venerated in Rila Monastery. The monastery is located 160 km from Bulgaria's capital city Sofia
St. Johns first Bulgarian established monastery Rila Monastery is currently the biggest functioing monastery in Bulgaria. The saints monastery is considered one of the most holy places in Bulgaria. If you have a travel or plan a holiday in Bulgaria, I warmly recommend you go there and venerate the saint incorruptable relics.
3. Binding keys to allow quick area screenshot taking with gnome-screenshot in GNOME
This configuration is for GNOME 2.x and is tested to work on my Debian (Squeeze 6.0), GNOME ver. 2.30.2, it should work in earlier Ubuntu versions shipped with GNOME 2.2.xx too. As I've red on the Internet it works well with Ubuntu 10.10Binding a key for screenshot area grab, should be working properly also on any GNOME 2.2.x supporting OS, including the BSD family OSes (FreeBSD, OpenBSD, NetBSD)…
a) setting gnome-screenshot key binding for interactive screenshot area grab
Navigate the mouse cursor to GNOME main menus panel in left top, where you see (Applications, Places, System). Therein use menus:
System -> Preferences -> Keybord Shortcuts -> Add ->
Alternatively if you prefer you can directly invoke the Keyboard Shortcuts configuration with command:
Further on, assign a shortcut by filling in something like:
command: gnome-screenshot -i -a
press Apply and next map a key to the new defined key binding:
Under the Shortcut column click on Disabled and assign some key combination to invoke the cmd for example Ctrl+F4
The command gnome-screenshot -i makes gnome-screenshot, show interactive make screenshot dialog like the one in below screenshot.
b) creating gnome-screenshot -a area screenshot key binding for quick area screenshots "on the fly"
The procedure is precisely the same as with adding interactive screenshot; Under Keyboard Shortcuts GNOME config assign new key binding by pressing Add button and adding:
command: gnome-screenshot -a
Once again in Shortcut column in line starting with grab-screen-area1 add your desired key switch. I personally like Ctrl+Print Screen SysRQ as it is close to the default GNOME key combination assigned for taking screenshot for a Windows Alt+Print SysRq
It was logical, that this key binding should work and a direct selection mouse cursor to appear once Alt+Print SysRQ is pressed, however for some reason this is not working (hmm, maybe due to bug) ??
Thanksfully it is always possible to substitute the just assignedgnome-screenshot -a key binding with import -frame /home/hipo/Desktop/screenshot.png
If you have followed literally my article so far and you did tried to place a bind for gnome-screenshot -a, modifty grab-screen-area1 to be something like:
Assign a key to make a screenshot of the active display after a delay of 5 seconds. I prefer Ctrl+F5
Onwards every time you would like to make an area screenshot, just use the defined keys:
Ctrl+F4 - will prompt you interactively for the precise type of screenshot you would like to take Ctrl+Print SysRQ - will prompt you for a direct area to select and once selected will immediately screenshot it Ctrl+F5 - would do delayed screenshot of entire screen after a delay of 5 seconds
4. Adding border and drop shadow effects with gnome-screenshot Actually, there is plenty of interesting things to do with Screenshots which I never thought were possible. While reading gnome-screenshot's man page, I've stumbled to an interesting argument:
Add an effect to the outside of the screenshot border. EFFECT can be ``shadow'' (adding drop shadow), ``border'' (adding
rectangular space around the screenshot) or ``none'' (no effect). Default is ``none''.
This would have been a nice feature but as of time of writting this article, untofrtunately it is not working in GNOME 2.30.2. I'm not sure if this is a local Debian bug, however I suspect on other Linux distributions with different GNOME build configuration, this features might be working well. My guess here is drop shadow effect and border effect are not working because, gnome-screenshot was compiled without (support for ImageMagick?). Anyways the way the feature is supposed to be work is by invoking commands: :
The same basic effects, are also available through GIMP's menus:
Image -> Effects
5. Setting default behaviour of gnome-screenshot in gconf-editor GConf (Gnome config registry db)
Experienced, GNOME users should already know about the existence of gconf-editor and the gnome registry database. For those who have don't, coming from MS-Windows background gconf-editor is GNOME (graphical environment) equivalent to Microsoft Windows registry regedit command
gconf-editor can be used to atune the way the screenshots are taken by default. To do so, launch gconf-editor cmd and follow to sub-structure:
/ -> apps -> gnome-screenshot
The settings in above screenshot are configurations which are used by default by gnome-screenshot, right after install. You can play with the options to change the default way PrintScreen SysRQ key press will take screenshots. Here is one example for changing the gnome-screenshot default GNOME behaviour:
As you can see in above screenshot, I've changed my default gnome-screenshot snap taking to include a drop shadow effect: Name | Value
border_effect | shadow include_border | (tick on)
last_save_directory | file://home/hipo/Desktop
As you see you can also control, where by default gnome-screenshot will save its screenshots, by default, its saved in $HOME/Desktop . If you prefer some custom directory to only contain Screenshots taken for instance $HOME/Screenshots, create the directory: hipo@noah:~$ mkdir ~/Screenshots
and then change the value for last_save_directory gconf var:
Once settings are applied screenshots with Print Screen SysRQ key will be made with Shadow Border effect and saved in /home/hipo/Screenshots
Strangely enough, changing gnome-screenshot default screenshotting values to include screenshot effects like drop shadow or screenshot border effect works just fine. Even though gnome-screenshot –border-effect=shadow and gnome-screenshot –border-effect=border doesn't directly affect the current screenshot to be made, I've later noticed writting this two commands in the gnome-terminal, does change the border settings for gconf-editor screenshot border.
If you enjoyed, this article and you intend to become "a professional screnshotter" :), you might also enjoy my two other articles:
I had to create a number of Facebook and Twitter accounts for one of the companies where I am employed. As I had to put Avatars to each and every new account. I therefore had to resize the company logos to fit the to the avatar dimensions.. It took me a bit of research until I found the proper picture dimensions. Here are the dimensions:
For facebook page Avatar the good picture width / height dimensions is a square like:
If however you prefer to have a sky scraper picture in Facebook, this is possible as thumbnail pictures up to 180×540 w/h pixels are showing up in FB. At most cases FaceBook automatically resizes the uploaded picture and generates a thumbnail which in most pictures looks okay, however in some odd picture dimensions the picture preview might be messy, so its better to ship the profile pic in standard square size like 151×151, 256×256, 313×313 etc.
For Twitter page Avatar the fixed picture width / height dimensions is:
In Twitter again the avatar picture should be a square like, to have twitter during upload automatically resize and make a good looking pic thumbnail. If some picture with a non square dimensions is uploaded as an Avatar for twitter account usually, twitter's pic auto resize server side program chops parts of the picture. This is not a bug but expected behaviour. In Twitter another requirement is that the uploaded avatar image does not exceed 700kb, trying to puload a picture over 700k fails.
In both Facebook and Twitter the uploaded Avatar logo should be in format JPEG, GIF or PNG . To resize the company logo pictures for FB and Twitter, I used GIMP 's:
Image -> Scale Image
I've red some people claiming the size of the Avatar logo in Facebook could have some impact in terms of e-marketing, but I'm not sure if this is a fact or some false rumour. Anyways it is sure that a wide sky scraper like picture allows you to show more even from the profile and maybe through the picture have larger influence over the audience.
I've received a PDF file with a plan for development of a bundle of projects, My task was to evaluate this plan and give feeback on the 44 pages PDF document.
Since don't know of program to directly be able edit PDF files on GNU / Linux ?, my initial idea was to open and convert the PDF to ODT / DOC with OpenOffice (Libre Office) and then edit the ODT file. Unfortunately Open Officeoowrite program was unable to open / visualize the PDF file. My assumption is OO failure to open the PDF is because the PDF was generated on Microsoft Windows with Adobe illustrator or smth.
The idea that came to my mind as alternative, way to edit the PDF file was to convert it in pictures edit and then convert the pictures to PDF. In other words to follow these 3 steps: 1. Convert the PDF document to multiple images
2. Edit each of the images with GIMP or Inkscape
3. Convert back all images to a single PDF file
I've done the PDF to pictures conversion on my notebook running Debian Squeeze (6.0.2) GNU / Linux.Convertion of the PDF file to 44 images, took 25 seconds on my dual core 1.8 Ghz / 2GB RAM Thinkpad r61. Afterwards, I've had at hand 44 PNG files generated, e.g.:
hipo@noah:~/project-pdf-to-images$ ls -al Project-*.png |wc -l
convert was also smart enough to produce correct file naming. The output file names were: Project-1.png Project-2.png etc.
Nicely each number (-1.png) was corresponding to the respective PDF page. For instance Project-10.png was corresponding to page 10 of the Projects.PDF file
Rather ironically, after convertion of the PDF to pictures, while opening the Project-1.png, I've noticed The GIMP – (The GNU Image Manipulation Program) is capable of directly reading PDF files. GIMP has both the option to open files in layers or separate images 😉 Anyways even if GIMP is used to modify the different PDF pages as layers, once completed GIMP doesn't have the ability to save the file as PDF and therefore once saved the file if merging of layers is done the resulting picture becomes ONE BIG MESS. Therefore it seems my the 3 steps way e.g.:
1. convertion PDF to pictures
2. picture edit with GIMP or Inkscape
3. convertion of pictures back to PDF
is still the only way to "modify PDF" in Linux or BSDs. I will be glad to hear if someone has come up with a better solution?
I’ve playing trying to learn InkScape – The Open Source vector graphic editor .By so far I’m quite impressed on how easy this program is learned and how easy graphical manipulation with this nifty program can be done. The default format in which InkScape saves its files is SVG (Scalable Vectors Graphics). For all those unfamiliar with SVG – SVG is an open (free format) format developed in 1999 which insetad of containing binary data like PNG or JPEG does contain plain XML content. SVG being consisted of plain XML has multiple advantageous, the most important one makes it easy for text and visual data to be displayed among different program svg readers in absolutely identical way. Besides that the format if read with plain text editor like vim or emacs can be altered directly via the source. Being multi system interoperable makes SVG as a great format for text and visual data storage in HTML5, actually SVG is already a part of the HTML5 html coding standard. And most probably its adoption rate will raise up drastically as soon as HTML5 starts substitute HTML4 and lower web standards.
Anyways I’m slipping away from the aim of this post so I’ll stop blabbering on how great SVG is and let people check it out for themselves (if not already).
Going back to the aim of my article to show How to convert SVG to PNG graphical extension on GNU / Linux and FreeBSD
After producing a bunch of files with InkScape I realized the default format in which Inkscape stores its files is SVG , this was okay with me but since I wanted to have my experimental produced content in PNG I needed a way to convert SVG to My first logical guess was that The Gimp will be able to handle the situation and after opening my SVG file with GIMP and used the gimp File -> Save As option and give the SVGfile an extension of PNG , Gimp succesfully converted the file to PNG.
However I wanted to dig further and check out what is the standard accepted way to convert SVG files using a plain command. This will possibly be handy to me if I had to do something online (let’s say a website) which will accept SVG and will require the SVG files to be converted and also stored in PNG or other Graphic file formats.
After checking online, I’ve found a post which pointed me to librsvg2 which contains RSVG – (Turn SVG files into raster images.)
librsvg is available as a package in most mainstream Linux distributions nowdays, Fedora, Debian etc., as well as contains a port inside the FreeBSD ports system. Since I’m using Debian on my notebook where I installed and tested the command line SVG to PNG convertion the way I did it is:
noah:/home/hipo/Desktop# apt-get --yes install librsvg2-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
Need to get 72.5 kB of archives.
After this operation, 180 kB of additional disk space will be used.
Get:1 http://ftp.nl.debian.org/debian/ squeeze/main librsvg2-bin amd64 2.26.3-1 [72.5 kB]
Fetched 72.5 kB in 0s (184 kB/s)
Selecting previously deselected package librsvg2-bin.
(Reading database ... 376046 files and directories currently installed.)
Unpacking librsvg2-bin (from .../librsvg2-bin_2.26.3-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up librsvg2-bin (2.26.3-1) ...
Afterwards the exact convertion of my Inscape SVG file drawing.svg to drawing.png using rsvg I’ve done like so:
hipo@noah:~/Desktop$ rsvg drawing.svg drawing.png
The convertion results for me was 100% uniqueness between the file converted and the output PNG. Some people might wonder why I didn’t used Inkscape’s Export to Bitmap function and then use convert command part of ImageMagick in order to convert the produced Inkscape bitmap to PNG.
One other thing worthy to mention is on Debian, librsvg2-bin contains 2 more executable besides rsvg. One is the rsvg-view command which allows one to view SVG files using command line or Graphic enviroment, the other one is rsvg-convert which supports again SVG convertion to PDF and to PNG
Before proceeding with the other described ways to convert SVG to PNG earlier in this article, I give a try to Inkscape’s Export to Bitmap embedded function but the produced bitmap did not resembled the original SVG file so I decided to completely abandon this method Maybe there is some particular reason of the chaotic way I’ve tested Inkscape to place random images sometimes going out of the field of a paper etc. which influenced the improper generation of Bitmap using Inkscape, despite that it seems InkScape needs some more development until the bugs in Bitmap producing get fixed and it can be freely used to produce Bitmaps.
Maybe there is some particular reason for the failure of Inkscape to produce a good BMP file, like for example the chaotic way I’ve tested Inkscape to place random images sometimes going out of the field of a paper borders etc.This should have influenced the improper generation of Bitmap using Inkscape, anyhow it seems InkScape needs some more development until the bugs in Bitmap creation get fixed.
By the way if you’re wondering how to convert PNG to bitmap BMP after, once having converted SVG to PNG this is easily doable with convert command, like so:
Maybe in future releases it will be a good idea if InkScape developers integrate a convertion to other formats this will make it handy and make surely these nice program more popular among users. Hope this is helpful. Cheers and as RMS likes to say Happy Hacking 😉
Reading Time: < 1minute Every now and then I have to screenshot particular windows positioned on the screen on my GNOME Desktop envronment Recently I was happy to find there is a very easy way to do this with the default Screenshotting program that is bundled with gnome gnome-screenshot
To screenshot a particular window using gnome-screenshot , its quite easy all one has to do is point the mouse cursor to the window he wants to snapshot and press:
Alt + PrtScr (Print Screen)
Here is a screenshot, I’ve taken of my gnome-terminal using the above command:
One can do it also via the command line using the /usr/bin/gnome-screenshot , by pressing Alt + F2 to invoke the run application and type in:
I was quite happy to find out that this is possible on Linux inside gnome without bothering to run GIMP or use any external programs for the cause. Hope this helps someone 😉
☩ Walking in Light with Christ – Faith, Computing, Diary 2006-2020 Powered by: Pc Freak Solutions and Comments (RSS). Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.