Questions tagged [sips]

Sips - Scriptable Image Processing System - is a command line interface to Apple's Core Image framework.

Filter by
Sorted by
Tagged with
1 vote
1 answer
174 views

Sips: resize image's smallest side, not largest side

The command sips -z 2000 image.jpg will resize the biggest side of an image to 2000 if it is greater than 2000, while preserving the original aspect ratio. Is there a similar command that will resize ...
user avatar
  • 7,425
2 votes
1 answer
182 views

force sips command to write output to stdout

I wrote a script that convert a icns file to png and then encode the png with base64. I could do it in 2 steps: sips -s format png test.icns -o test.png base64 -w0 test.png But since test.png is ...
user avatar
  • 1,076
3 votes
1 answer
2k views

Convert .png image icon to .icns file (MacOS)

What command can I type in my BASH shell to convert a given icon in png format into the icns image format required by Apple .app directories?
user avatar
1 vote
0 answers
138 views

Sips image resize: Background cover

Using SIPS, I can proportionally resize an image using sips -Z 256 to reduce the width and height of my image to a size no larger than 256px. Over a padded background fill, this produces a result ...
user avatar
  • 111
1 vote
1 answer
1k views

Command line to create a PDF document from a batch of images [duplicate]

How to create a PDF document from a batch of images ? === Belowis what I tried before posting this question: The ImageMagick way, but the PDF document generated is too big: convert *.ppm book.pdf ...
user avatar
0 votes
1 answer
798 views

Can I use SIPS to reduce the size of PNG files by reducing the number of palette colors?

I need to shrink PNG files like the ones generated as the default macOS screenshot. SIPS was my first stop since it's faster than any other solution but I haven't quite been able to find the right ...
user avatar
  • 300
3 votes
2 answers
641 views

Trying to pass images to shell command using automator

I am creating this service for Finder that will receive image files and pass to a shell command. The idea is this: I select image files on finder. I right click and choose the service I am creating ...
user avatar
  • 2,107
2 votes
1 answer
1k views

Use sips to pad just the top of an image

I'm trying to add padding to the top of an image using the command line. I've found the sips command and I've tried sips --padToHeightWidth 1300 1920 image.png on an image which is 1920 x 1080. ...
user avatar
1 vote
1 answer
856 views

SIPS: Only Resize if Image is 315x300?

I'm currently using sips --resampleHeightWidth 250 300 "S1" to resize new images in a folder but I think that it might be resizing images that were already resized.. Is there anyway to know this for ...
user avatar
  • 377
0 votes
3 answers
939 views

Batch-processing Image Files in a Folder using a folder action with Automator

I'm trying to resize new image files in a folder using a folder action so the files that were already resized to 300x250 don't get resized again. The thing is I'm having issues getting the resizing ...
user avatar
  • 377
3 votes
1 answer
301 views

Sips not working with pict, qtif and sgi files

The terminal command sips -s format pict /path/to/image.ext --out /path/to/output.pic ouputs Error: Unsupported output format com.apple.pict even though if you do man sips and go down to format, there ...
user avatar
  • 5,357
5 votes
2 answers
2k views

Why setting image as its own icon with sips result a blurred icon? Are there any alternatives?

I've successfully changed icons using the procedure described in an another question: Changing or setting a file or folder icon programmatically. Either my sips (or Finder) got broken afterwards or I ...
user avatar