Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

mcarbonera/Inkscape_extensions_for_halftone_filters

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google/PSU Summer of Code 2017 project:

SVG Digital Halftoning

Inkscape extensions for halftone filters

Copyright (c) 2017 abhishek-sehgal954

Mentoring Organization: Portland State University

Mentor: Bart Massey

Student: Abhishek Sehgal

This repository includes Inkscape extensions for some halftone filters.

How to run?

  1. Copy .inx and .py file of the extension you want to use and paste it under the extension folder of inkscape. (Make sure you have also pasted common.py if you are using any Raster to Raster extension.)
  2. Open Inkscape
  3. Open an image and select it.
  4. Under Extensions menu, find desired submenu and select the desired algorithm.

image1

Submenu: Raster to Raster halftone

  1. Patterning
  2. Ordered dithering
  3. Error Diffusion
  4. Newsprint filter

image2

Submenu: Raster to vector(SVG) halftone

  1. Clustered dot
  2. Newsprint filter
  3. Ordered dithering
  4. Error diffusion

image3

Submenu : SVG to SVG halftone

  1. Clustered dot
  2. Newsprint filter
  3. Ordered dithering
  4. Error diffusion

image4

Halftone effect

Original Image

scenery

Patterning

patterning

Ordered dithering

ordered_dithering

Error diffusion

error_diffusion

Clustered dot

clustered_dot

Newsprint filter

newsprint_filter

  • Extension error diffusion and ordered dithering asks for desired width of the halftone image because of the size issue, and height is calculated according to that width thus maintaining the aspect ratio.
  • Make sure to change path in SVG to SVG extensions (both of inkscape location and a temporary location to save temporary png file).

File common.py is a utility file which provides helper functions for raster images. It was developed under the terms of the GNU General Public License by su_v suv-sf@users.sf.net. Original file and other very helpful raster extension for inkscape can be found here: https://gitlab.com/su-v/inx-modifyimage/blob/master/src/image_lib/common.py

License

This work is licensed under the "GNU General Public License v2.0". Please see the file LICENSE in the source distribution for license terms.

Work remaining

  1. Ask users to change dot size for halftone filter.
  2. Adding feature of allowing moving of particular monochrome screen.
  3. Add more filters (for ex. Benday dots)

About

This repository includes Inkscape extensions for some halftone filters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%