Tag Info

Hot answers tagged

30

That's actually Inkscape's default. Open File → Document Properties and click the background colour. Make sure the alpha channel is 0. As so: Go to File → Export Bitmap (Shift+Ctrl+E) and save a file with a .png extension. You're done.


17

(All one line:) for file in *.png ; do pngcrush "$file" "${file%.png}-crushed.png" && mv "${file%.png}-crushed.png" "$file" ; done should do it. (THough so far in my own tests, less than half of the pngs I tested pngcrush on were smaller afterwards, so color me unimpressed.)


17

Yes, using imagemagicks convert tool: convert -delay 20 -loop 0 frame*.png animated.gif This will take all of the source frames and will make them into one animated GIF image. The -delay 20 argument will cause a 20 hundredths of a second delay between each frame, and the -loop 0 will cause the gif to loop over and over again. As for setting the ...


9

It appears you can use Inkscape from command line: `#{INKSCAPE_PATH} -z -f #{source_svg} -w #{width} -j -e #{dest_png}` more details I imagine you can write a simple bash script to process all SVG files: #!/bin/sh for file in *.svg do /usr/bin/inkscape -z -f "${file}" -w 640 -e "${file}.png" done the example above converts all .svg files in the ...


8

It sounds like the image you are editing is using a limited colour palette rather than full 24-bit RGB. GIMP is doing its best to do what you ask while using colours in the existing palette. If you want to switch the image to full colour, select Image -> Mode -> RGB from the menus. You should then be able edit the image using any colours you want. If you ...


8

Since version 1.7.22, pngcrush has an overwrite option. Try pngcrush -ow file.png See Changelog for more information: Version 1.7.22 (built with libpng-1.5.6 and zlib-1.2.5) Added "-ow" (overwrite) option. The input file is overwritten and the output file is just used temporarily and removed after it is copied over the input file.. If you ...


7

You can use: png2icns file.icns file.png The first one is the name you want your .icns file to have. The last one is the .png file you want to export as an icon. Important: Only convert the icons that match sizes icns supports: (16x16, 32x32, 128x128, 256x256, 512x512 and 1024x1024 pixels) Or you can use an online service: iConvert Icons Source: ...


6

Imagemagick seems to be very violent with memory usage. A suggestion is to use -limit to limit the memory size convert will use, it should use a disk cache for anything else it needs. Read an explanation here: http://www.imagemagick.org/pipermail/magick-users/2002-March/001285.html And here's how to use the -limit option : ...


6

I remember reading on heise (german) that someone wrote a plugin to revert back to the old functionality. Runnning the following commands in a terminal will download the latest version of the plugin to Gimp 2.8's config directory and make it executable: wget https://github.com/akkana/gimp-plugins/raw/master/save-export-clean.py -O ...


6

Try these commands, mogrify -format png /path/*.jpg This will convert all the .jpg files into .png files and saves the converted files in the same directory. mv /path/*.png ~/Desktop/pic This will moves all the .png files(conerted) to the pic directory which resides on the Desktop.


5

For my workflow here the definitely fastest way to safe an edited file back to the path it resides is using the "File -> Overwrite xxx" menu which appears after an existing file was edited: To further speed things up we can also define a key shortcut for file-overwrite which, after removing the shortcut for file-save could also be Ctrl + S :


5

If your favorite tool is "shutter" you can try to create a little plugin for it. Creating Plugin for Shutter. 1) Make sure you have installed optipng, or install it with: sudo apt-get install optipng 2) If shutter is running close it or kill it.. pkill shutter 3) Create a folder for the plugin and give it the correct perms. (eg:optipngplugin) ...


5

Starting from GIMP 2.8 we need to use the "File → Export" or "File → Export to..." menu entries, or alternatively the Ctrl+E or Ctrl+Shift+E keyboard shortcuts respectively, which will result in the Export dialog to allow you to save the work in your favorite image format. The former Ctrl+S and Ctrl+Shift+S is now used to work with the project ...


5

If you look at the quickstart guide on nagios' website, you'll notice that the guide for Ubuntu 7.10 and later asks you to install libgd2-xpm-dev with this command: sudo apt-get install libgd2-xpm-dev That should do it for ya! Of course you could always follow the Ubuntu Server guide and install the nagios packages instead of building it yourself.


4

You are probably not exporting the whole image. I think by default Inkscape exports only what you have currently selected. So when you export, make sure you have everything you want selected, or choose "Page" in the export type.


4

Gimp is freeware software made for linux, and the deep clicking you are mentioning, thats a common problem, because it returns you to the home folder, or any other folder you used last session. Thats a bug i think should be reported to the developers of gimp. ctrl+s is to save it as a Gimp-project. When saving it as an image, you should export it, using ...


4

You have to export the image, not save it. To convert: Open the XCF file using GIMP Click on File Click on Export Enter a filename It'll be saved as PNG by default. You can use any other format by simply adding the extension to your filename (like image.jpg, image.bmp) or selecting another file format in the bottom right of the export window. Click on ...


4

You probably need to tell Eclipse which editor to use. Go to Preferences > General > Editors > File Associations. Create an entry for *.png if necessary and then Add an Associated editor specifying the External program you want to use.


3

Open File -> Document Properties and click the background color. Then set alpha 0 in background color dialog -> close the dialog -> File menu -> Export Bitmap -> Choose export file name (click on Browse button -> type file name with .png extension) -> click on Export button. ! Done.


3

Following up on the Glib-GIO-CRITICAL issue, I googled around a little and found it actually was a known issue with libglib. I had another outstanding problem with that, and question on askubuntu. I went ahead with rolling back a version, and the problem was corrected. Details for what was rolled back are here: How do I downgrade libglib2? (from glib ...


2

Instead of specifying your image as step1.png, use this (relative) path in place of it: ../media/step1.png This should cause it to be accessed in the right place, since .. represents the parent directory of wherever the application is currently looking (in this case, apparently /home/jtp/projectnamme/data), and the actual file is located in ...


2

Graphical Nautilus Script Overview The command line is great for batch conversions but sometimes you just don't want to leave the comfort of your GUI. That's why I coded a GUI-based Nautilus script to batch convert SVG files to PNG images. Other file managers with custom actions (e.g. Thunar) should be supported, too. Screenshot Script #!/bin/bash ...


2

Using ImageMagick. First install imagemagick: sudo apt-get install imagemagick Try converting just one image at first: convert image.jpg image.png Now convert all: mogrify -format jpg *.png EDIT You also need to split it into chunks that will fit to avoid hitting the limit of how much you can put on a command line. This should work better: find ...


2

So you are looking for raster to vector graphics converter. potrace & autotrace both are in Ubuntu repository. Myself I tried potrace before which gave nice results with default options. As I remember, both tools do not support compressed formats as input, only bitmap images. See Potrace examples Potrace: utility to transform bitmaps into vector ...


2

open terminal by CTRL+ALT+T for libpng type this or just copy & past sudo apt-get install libpng-dev zlib type this or just copy & past sudo apt-get install zlib1g-dev


2

Try this: #!/bin/bash if [ $# -eq 1 ]; then width=$1 height=$1 else if [ $# -eq 2 ]; then width=$1 height=$2 else echo "Error: missing parameters!" echo "Usage: myscript.sh width [height]" exit 1 fi fi ls *.svg | while read file do destFile=`echo $file | sed 's/\.svg/\.png/'` inkscape -f ...


2

If you have GNU Parallel try this (based on Letizia's solution): #!/bin/bash if [ $# -eq 1 ]; then width=$1 height=$1 else if [ $# -eq 2 ]; then width=$1 height=$2 else echo "Error: missing parameters!" echo "Usage: myscript.sh width [height]" exit 1 fi fi parallel inkscape -f {} -w $width -h $height -e {.} ::: *.svg ...


2

Answering the follow-up question, probably the easiest thing to do in these cases is to create a small ad-hoc filesystem and loop-mount it. Something like this: $ dd if=/dev/zero of=imgdisk.img bs=1M count=512 512+0 records in 512+0 records out 536870912 bytes (537 MB) copied, 0.425628 s, 1.3 GB/s $ du -h imgdisk.img 513M imgdisk.img $ mkfs.ext4 -b 2048 ...


1

I assume you're using http://www.imagemagick.org/. The -dispose command describes what is to be done with the frame after its delay (when the next frame is loaded). Info here: http://www.imagemagick.org/Usage/anim_basics/#dispose -dispose previous try: convert -delay 5 -dispose previous -loop 0 Frame_7_00000*.png" animated.gif


1

Different pieces of software report different disk space usage statistics in 2 ways. Files can have a size that is the number of bytes in a file, and a "physical size" which is the sum of the cluster sizes used by that file. The physical size, or "cluster size" is the minimum chunk the OS keeps track of when referring to space used on a disk. So if you have ...



Only top voted, non community-wiki answers of a minimum length are eligible