spaceship/lib/spaceship/du/upload_file.rb
# As things like screenshots and app icon shouldn't contain the alpha channel
# This will copy the image into /tmp to remove the alpha channel there
# That's done to not edit the original image
As things like screenshots and app icon shouldn't contain the alpha channel
This will copy the image into /tmp to remove the alpha channel there
That's done to not edit the original image
As things like screenshots and app icon shouldn ' t contain the alpha channel This will copy the image into / tmp to remove the alpha channel there That ' s done to not edit the original image
def remove_alpha_channel(original)
        path = "/tmp/#{Digest::MD5.hexdigest(original)}.png"
        FileUtils.copy(original, path)
        `sips -s format bmp '#{path}' &> /dev/null ` 
        `sips -s format png '#{path}'`
        return path
      end
def remove_alpha_channel ( original ) path = "/tmp/#{Digest::MD5.hexdigest(original)}.png" FileUtils . copy ( original , path ) ` sips -s format bmp ' #{ path } ' &> /dev/null  ` ` sips -s format png ' #{ path } ' ` return path end
As things like screenshots and app icon shouldn't contain the alpha channel
This will copy the image into /tmp to remove the alpha channel there
That's done to not edit the original image
As things like screenshots and app icon shouldn ' t contain the alpha channel This will copy the image into / tmp to remove the alpha channel there That ' s done to not edit the original image
# &> /dev/null since there is warning because of the extension
original
<not_specific>