Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8790839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:45:28+00:00 2026-06-13T22:45:28+00:00

I’m using ImageMagick to downsample text. I realize that there’s no such thing as

  • 0

I’m using ImageMagick to downsample text. I realize that there’s no such thing as the best filter for every situation, but I’m thinking there must be a generally-accepted standard when it comes to downsampling text specifically (I could be wrong). Here’s the list of filters available in ImageMagick:

  • Bartlett
  • Blackman
  • Bohman
  • Box
  • Catrom
  • Cubic
  • Gaussian
  • Hamming
  • Hanning
  • Hermite
  • Jinc
  • Kaiser
  • Lagrange
  • Lanczos
  • LanczosSharp
  • Lanczos2
  • Lanczos2Sharp
  • Mitchell
  • Parzen
  • Point
  • Quadratic
  • Robidoux
  • Sinc
  • SincFast
  • Triangle
  • Welsh
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:45:29+00:00Added an answer on June 13, 2026 at 10:45 pm

    There is no generally-accepted downsampling filter; simply because, there’s no generally-accepted type-face for text. You’ll need to identify the font(s) your working with, and apply the best-matching filter for said task.

    • Processing emails from 2005? Tahoma font => Hermite filter
    • Scanned faxes? Mixed high contrast => Point filter

    Visual comparision of each filter’s stangth & weakness can be found here & here.

    I like to remind myself which filter will meet a task by generating a visual cheat-sheet.

    Downsampling example

    Here’s a quick bash script previewing “DejaVu Sans Condensed”

    #!/bin/bash
    
    # Adjust this to type-face you'd like to preview
    FONT_TO_PREVIEW="DejaVu-Sans-Condensed-Bold"
    
    # Create a temp directory to work with
    mkdir filter_tmp
    cd filter_tmp
    
    while read filter
    do
        # Generate base file
        convert \
            -gravity center -font $FONT_TO_PREVIEW -background white -size 126x \
            -fill black -pointsize 12 label:$filter $filter.org.png
        # Resample
        convert $filter.org.png -filter $filter -resize 400% $filter.filter.png
        # Crop center
        mogrify -gravity center -crop 126x+0+0 +repage $filter.filter.png
        # Tile filtered image below original
        montage $filter.org.png $filter.filter.png -tile 1x2 -geometry +1+1 +label +set label $filter.png
        # Clean house
        rm $filter.filter.png $filter.org.png
    # Generate list of all installed filters
    done < <(identify -list filter)
    montage -geometry +4+4 -tile 4x *.png ../filter_preview.png
    
    # Clean house & display generated filter preview
    cd ..
    rm -rf filter_tmp
    display -display :0 filter_preview.png
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.