How can the alpha channel be removed in an image with the command sips?

I solved it by converting the image to jpeg with best quality, but it's a less than optimal solution.
Is there a better way?
I want to know because I'm developing a bash script to manipulate images.
Thank you.

I'm developing a Bash script to automate PNG compression.
Converting true color images is often a good idea to reduce file size dramatically but transparency doesn't look any good then. So removing the alpha channel is usually the thing to do.
I think Apple's platform is very easy to use but as soon as I dig deeper into the system it often becomes frustrating. Why isn't there a simple way to do something so simple and basic as removing alpha channels from images from the command line? Sips should be the answer but doesn't seem to be, unless I've missed something, but the manual doesn't give any clue.

Similar Messages

  • How can you find out if your mac is infected with the flash back virus

    how can you find out if your mac is infected with the flash back virus?

    F-Secure's Flashback removal tool - http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_k.shtml - supposedly also works on OSX 10.5 and earlier.
    05 Apr 2012 How to Detect and Protect Against Updated Flashback Malware - http://tidbits.com/article/12918 - detection methods for multiple browsers and general information
    Leopard and earlier users see recommendations at: https://discussions.apple.com/thread/3872491

  • How can I synchronise my iTunes Library on my iMac with the one on my MacBook?

    How can I synchronise my iTunes Library on my iMac with the one on my MacBook?

    Carolyn:
    I have almost 10,000 songs/cuts in my music collection and, because of the poor quality of iTunes music, very few of those songs/cuts come from iTunes.  My music came from me ripping it disc by disc over hundreds of hours. I would like to be able to add a disc and have both the iMac AND the MacBook music files (plus an external backup) be updated.  Surely there is an intelligent, relatively easy to implement procedure for doing this. Perhaps I am missing something but your response doesn't seem to address the sync issue with all its implications...

  • How can i get a copy of my ipone messages with the number, date and time stamp?

    How can I get a copy of my iphone messages with the number it was sent from and the date and time stamp?  Needed for court purposes.

    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    You should probably consult your attorney to see if either of these will be acceptable.

  • Question when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • How can I assign a ringtone to a specific contact with the iphone4 ios7

    How can I assign a ringtone to a specific contact with the iphone4 ios7?

    From the home screen, tap on Contacts, tap on the contact you'd like to edit.
    In the top right, tap the , scroll down, for Ringtone, tap on Default, select the desired ringtone.

  • How can I combine a lot of text and images on the same screen?

    How can I combine a lot of text and images on the same screen?  I can get a couple of words on the screen with a graphic but not 10 lines.  I need 10 lines on the page with the image. 

    Priscilla,
    I routinely combine 10 lines of 36 pt bible or lecture text to a suitable background using Boris Title 3D.
    Many times the text is too long to fit the screen using Boris, so I devide it into 2 or more parts with no transition between sections.
    In my case, the text is on the screen as the speaker quotes them.
    David

  • How can i copy a picture that has been installed with the flash player

    how can i copy a picture that has been installed using the flash player

    You can't. You can take a screen cap of it, but the container doesn't allow access to the individual images used in a SWF or FLV.

  • HT5228 How can I tell if my  computer has been infected with the Trojan?

    How can I tell if my computer has been infected with this latest Trojan (or with any Trojan)?  I did install the latest update to Java when I was told by my iMac that new software was available for my computer, which was just 2 or 3 days ago (first week of April).  Now it is being said that there was a Java Trojan.
    Many thanks for any replies!

    Log out and log back in, if you haven’t done so recently. Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Step 1
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    launchctl getenv DYLD_INSERT_LIBRARIES
    Post the lines of output, if any, that appear below what you just entered (the text, please, not a screenshot.)
    Step 2
    Repeat with this line (triple-click anywhere in it to select the whole line):
    find /Applications /System/Library/CoreServices -type d -name *.app -exec defaults read {}/Contents/Info LSEnvironment \; 2> /dev/null | grep DYLD_INSERT_LIBRARIES
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    If you get no output from either step, you're not infected with any variant of Flashback that I know of.

  • HT1212 I need to remove the restrictions from my iPod Touch, but I forgot the passcode. How can I reset it? I tried syncing it with the computer, but don't see an option to remove the passcode.

    The internet&app store applications were removed from my iPod by restrictions. My father put this block in place and doesn't remember the passcode to reset the restrictions. How can i reset them without the passcode, or reset the passcode?

    You can't.  The only way to remove the Restriction password is to: a) Restore the iPod using a backup that predates the setting up of the Restrictions password; or assuming you don't have such a backup b) Restore the iPod to Factory Settings/New iPod.

  • How can I find a previous device that was registered with the same id but on a different laptop?

    my laptop was stolen along with my ipod touch. It was registered with that laptop but I need proof for an insurance claim. how can i show i registered it (owned it) with my new laptop?
    my ipod was previous to the most recent so i think thats a 4th gen
    i've used the same apple id on both laptops
    thanks

    ok well my last laptop was the only lapyop used to sync my ipod (thought that meant it was registered)
    i need proof of purchase for an insurance claim. i dont have the box because i threw it away when i got the ipod. is there any way of showing, on my new laptop, that i had my last ipod so that i can get a replacement.
    cheers

  • How can I create a client console and work together with the Cache Server?

    How can I edit the following Cache-Server.cmd file to create a client console and work together with the Cache Server?
    The following is the cache server file: contacts-cache-server.cmd
    @echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\
    coherence\Contacts;C:\home\oracle\coherence\Contacts\classes;
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exitEdited by: junez on 23-Oct-2009 09:20

    Hi
    To run the console, change DefaultCacheServer to CacheFactory
    Paul

  • How can I incorporate DreamWeaver to upload all my images onto the website template in filezilla and make changes to the website template?

    I have all my images and website template in filezilla under hostgator as the web server, and how can I incorporate DreamWeaver so I can make changes to the website?

    You dont have to put everything onto your webserver first. You can start with DW locally (with all files stored on your computer) before uploading a completed site to your server.
    You can follow these instructions to define/ setup your site locally in DW: Defining a site in Dreamweaver
    And check out this tutorial to create your website: Creating your first website – Part 1: Setting up your site and project files | Adobe Developer Connection
    Then follow this to sync your files to your webserver: Adobe Dreamweaver * Getting and putting files to and from your server
    Good luck.

  • Disk Utilities can not repair my disk - invalid node structure. How can I repair my disk? I have restarted with the CD.

    Hi,
    How can I repair my hard disk. Computer Starts up and then shuts down.
    I've started up with the CD and disk utilities can not fix the disk, invalid node error.
    How can I fix my disk?
    I need to get to the file on the hard disk.
    Thanks
    Peter

    With Disk Warrior can I start with a CD/DVD and get at the files on the hard disk?
    With apple disk utilites I can not see my files that are on the hard disk.
    If I could get at my files I could back them up and reformat my hard disk.

Maybe you are looking for

  • Error while installing SAP NetWeaver 7.01 ABAP Trial Version

    Hi Experts, While installing the SAP NetWeaver 7.01 ABAP Trial Version on my pc (Vista) getting the below error. (Sep 26, 2010 10:30:07 AM), Install, com.sap.installshield.CheckServicesAction, err, CheckServicesAction(bean17): Expected service (SAPNS

  • HT4972 I can't get siri to get to work i updated yesterday and it still dosen't work

    Well i tried to update throw my laptop but after 2 goes i updated throw my ipad 2 and it work fine and after i done it had a look around and that and then i tried to get Siri on but after a few goes it didn't work

  • WLC 7.6.120.0 Radius problems with FreeRadius server

    Hi there we have 3 WLC 5508 with version 7.6.120.0 and 2 FreeRadius servers. In the WLC log we see a lot of "radius auth-server unavailable" messages and some users can not authenticate against our dot1x (PEAP). The problems occur most of the time, w

  • Printing playlist from Zen Mi

    It seemed so simple - print out a hard copy of the songs on my Micro. Problems - it may work with WinAmp, but I upgraded to WinAMP Pro 5.3, and it locks up my machine. I might be able to import it into Excel, but I have an old version of Excel. Someb

  • Adobe Elements and Premier 12

    Question. I had an old copy of Adobe Elements and Premier. I installed the new edition 12 of each and then deleted the old edition 9. When I installed the new Adobe Premier 12 at the installing shared technologies I get the message, "Detected Element