Tag Info

Hot answers tagged

24

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 and save a file with a .png extension. You're done.


13

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 ...


12

(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.)


8

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 ...


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: ...


7

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 ...


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 : ...


5

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 ...


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.


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

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 ...


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

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 :


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 ...


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

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.


3

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 ...


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

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

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.


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 ...


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 ...


1

As explained in the comments, I had a similar problem, which I handled with a script, which I show here, in the hope it could help: #!/bin/bash # # autocrop an image, shot by 'import', where an imageoffset is (why, oh, why?) # allways annoyingly produced # f=$1 || exit 1 img=$(identify $f) || exit 2 size=$(echo $img | cut -d ' ' -f3) || exit 3 ...


1

works here with Inkscape 0.47 r22583 (Apr 4 2010) regardless of whether I use "page" or "selection" when exporting to bitmap. Which version do you use ? (checked with display command of the Image Magick package, if that matters)


1

The SVGs do not use any more CPU to render than PNGs do. You can however, use PNGs if you wish instead of SVGs. Regardless of which you choose, you need to draw the icons at various different sizes to get the best results.


1

That is really easy: mogrify -format png %N Note the capital N.


1

I use Thunar to convert multiple svg files to various PNG files - mainly used as icon files for the Xubuntu desktop environment. For this I created a script, based on another script I found somewhere. As this script converts a set of selected images files into other image files, which might help you as well. Here is what I did to get this working in Thunar; ...



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