• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
LZW compression CLI tool (was: screen capture)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LZW compression CLI tool (was: screen capture)


  • Subject: LZW compression CLI tool (was: screen capture)
  • From: brian mather <email@hidden>
  • Date: Wed, 10 Dec 2003 00:26:42 -0500

From: "j.e.b." <email@hidden>
Michael

Thanks! Works great! I made 3 versions (just because) i.e. one for PNG, JPG
and TIFF

I appreciate you taking the time to provide this information.

Jim

How would I save this PNG to the Desktop rather than the /tmp/ directory?

do shell script "screencapture -S ~/Desktop/screengrab.pdf ; sips -s format
png ~/Desktop/screengrab.pdf --out ~/Desktop/screengrab.png"

BTW, you can also use the TIFF format doing it this way (as Bill Briggs
suggests), but the output file can be large (my test PDF 444 KB : output
tiff 2.5 MB):

do shell script "screencapture -S ~/Desktop/screengrab.pdf ; sips -s format
tiff ~/Desktop/screengrab.pdf --out ~/Desktop/screengrab.tif"

Perhaps, someone on the list can suggest a CLI or AS method for LZW
compressing that output tiff?

HTH

Michael Alatorre (mailto:email@hidden)


regarding the question of CLI tools to lzw compress. perhaps look at www.imagemagick.org. or www.graphicsmagick.org s splinter from the imagemagick project.

binaries as well as source code are available and if I am not mistaken Unisys' US patent on lzw compression expired this past June so where previously users could not enable the option in imagemagick when building from source -- without securing Unisys' blessing -- they can now freely do so. not sure about worldwide patents....

from the man page for 'convert'

NAME
convert - converts an input file using one image format to an output
file with the same or differing image format.

SYNOPSIS
convert [ options ... ] file [ file... ] file

DESCRIPTION
convert converts an input file using one image format to an output file
with the same or differing image format.

other than just changing formats imagemagick does about a jillion other things .... docs are sketchy (IMO) but there's a pretty good list community.

-brian
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: LZW compression CLI tool (was: screen capture)
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: Screen capture
  • Next by Date: RE: Screen capture
  • Previous by thread: Re: Mail 10.1.5 Dictionary
  • Next by thread: Re: LZW compression CLI tool (was: screen capture)
  • Index(es):
    • Date
    • Thread