Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sveinbjornt/Phew
FLIF image viewer and QuickLook plugin for macOS
https://github.com/sveinbjornt/Phew
cocoapods flif flif-format flif-images image-compression image-viewer lossless-images macos osx quicklook quicklook-plugin
Last synced: about 2 months ago
JSON representation
FLIF image viewer and QuickLook plugin for macOS
- Host: GitHub
- URL: https://github.com/sveinbjornt/Phew
- Owner: sveinbjornt
- License: other
- Created: 2017-04-13T11:38:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-15T14:34:59.000Z (about 6 years ago)
- Last Synced: 2024-05-06T18:21:56.434Z (2 months ago)
- Topics: cocoapods, flif, flif-format, flif-images, image-compression, image-viewer, lossless-images, macos, osx, quicklook, quicklook-plugin
- Language: Objective-C
- Homepage: https://sveinbjorn.org/phew
- Size: 6.24 MB
- Stars: 82
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.html
Lists
- Mac-QuickLook - phew
README
# Phew - FLIF Image Viewer for macOS
**Phew** is an open-source FLIF image viewer and QuickLook plugin for macOS.
The Free Lossless Image Format or FLIF is a novel lossless image format which outperforms PNG, lossless WebP, lossless BPG, lossless JPEG2000, and lossless JPEG XR in terms of compression ratio.
Phew can open and display FLIF images, and can export them as PNG, TIFF, BMP or raw pixel data. If the accompanying QuickLook Plug-In is installed, FLIF images show thumbnails and previews in the Finder and Spotlight just like regular images.
Animated FLIF images are currently not supported.
## Installation
* **[Download Phew 1.0](http://sveinbjorn.org/files/software/phew/Phew-1.0.zip)** (Intel 64-bit, macOS 10.10 or later, ~1.7 MB)
* [Sample FLIF images](sample-images/)The Phew source code contains the
FLIFImage
class, which is an Objective-C wrapper to easily read images in the FLIF format vialibflif
. This class is available via CocoaPods. See below for further info.Phew is also available through [Homebrew Caskroom](https://caskroom.github.io)
brew cask install phew
## Screenshots
![]()
![]()
## FLIFImage Objective-C Class
FLIFImage
is an Objective-C wrapper to easily read images in the FLIF format vialibflif
, the official FLIF reference decoder implementation. You can install via CocoaPods.FLIFImage exposes the following class methods:
+ (BOOL)isFLIFImageAtPath:(NSString *)path;
+ (BOOL)isFLIFImageData:(NSData *)data;+ (NSImage *)imageFromFileAtPath:(NSString *)path;
+ (CGImageRef)newCGImageFromFileAtPath:(NSString *)path;+ (NSImage *)imageFromData:(NSData *)data;
+ (CGImageRef)newCGImageFromData:(NSData *)data;Those calling
newCGImage*
methods are responsible for releasing the returned CGImageRef.## License
Phew uses
libflif
, which is distributed under the
GNU Lesser General Public License (LGPL), version 3 or later. Phew itself is also open source software, available under the three-clause BSD license:> Copyright (c) 2017, Sveinbjorn Thordarson <[email protected]>
>
> Redistribution and use in source and binary forms, with or without modification,
> are permitted provided that the following conditions are met:
>
> 1. Redistributions of source code must retain the above copyright notice, this
> list of conditions and the following disclaimer.
>
> 2. Redistributions in binary form must reproduce the above copyright notice, this
> list of conditions and the following disclaimer in the documentation and/or other
> materials provided with the distribution.
>
> 3. Neither the name of the copyright holder nor the names of its contributors may
> be used to endorse or promote products derived from this software without specific
> prior written permission.
>
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
> ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
> WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
> IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
> INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
> NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
> PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
> WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> POSSIBILITY OF SUCH DAMAGE.