Skip to content

Instantly share code, notes, and snippets.

@aferrero2707
aferrero2707 / vips_resize_benchmark.c
Created December 29, 2017 20:41
Benchmark code for vips_resize() function
/* Benchmark example for vips_resize().
*/
#include <stdio.h>
#include <stdlib.h>
#include <vips/vips.h>
int
main( int argc, char **argv )
#include <vips/vips.h>
int
main( int argc, char **argv )
{
VipsImage *image;
VipsImage *image2;
VipsImage *out;
// Create VipsImage from given file
@aferrero2707
aferrero2707 / Recipe.hugin
Created October 27, 2016 07:56
AppImage recipe for Hugin
#! /bin/bash
UPDATE=0
REBUILD=1
PREFIX=/xxx
# Move blacklisted files to a special folder
move_blacklisted()
{
@aferrero2707
aferrero2707 / gmic_gimp.cpp
Created September 6, 2016 17:55
Patched G'MIC plug-in that adds color management of the preview area
/*
#
# File : gmic_gimp.cpp
# ( C++ source file )
#
# Description : G'MIC for GIMP - A plug-in to allow the use
# of G'MIC commands in GIMP.
#
# Copyright : David Tschumperle
# ( http://tschumperle.users.greyc.fr/ )
@aferrero2707
aferrero2707 / Recipe.gimp.full
Created September 4, 2016 12:23
AppImage Recipe for GIMP - full bundling
#! /bin/bash
wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh
. ./functions.sh
APP=gimp
VERSION=2.9.5
LOWERAPP=${APP,,}
UPDATE=0
@aferrero2707
aferrero2707 / Recipe.git
Last active January 3, 2019 03:34
AppImage recipe for building GIMP from git
#! /bin/bash
FULL_BUNDLING=0
UPDATE=1
REBUILD=1
PREFIX=/zzz
# Move blacklisted files to a special folder
move_blacklisted()
@aferrero2707
aferrero2707 / CMakeLists.txt
Last active September 19, 2016 14:09
Experimental CMake build configuration for G'MIC
cmake_minimum_required(VERSION 2.8.9)
project(gmic CXX C)
find_package(PkgConfig)
# options controlling the build process
option(BUILD_LIB "Build the GMIC shared library" ON)
option(BUILD_CLI "Build the CLI interface" ON)
option(BUILD_PLUGIN "Build the GIMP plug-in" ON)
/* Pass VIPS images through gmic
*
* AF, 6/10/14
*/
/*
This file is part of VIPS.
VIPS is free software; you can redistribute it and/or modify
@aferrero2707
aferrero2707 / icc_test.c
Last active August 29, 2015 14:17
Simple test of custom ICC metadata handling
/* Compile with
gcc icc_test.c -o icc_test `pkg-config vips --cflags --libs` `pkg-config lcms2 --cflags --libs`
Run with
icc_test input_image.jpg output_image.jpg
*/
#include <vips/vips.h>
@aferrero2707
aferrero2707 / rawsave.c
Last active August 29, 2015 13:57
Simple test of raw image saving
/* Compile with
gcc rawsave.c `pkg-config vips --cflags --libs`
*/
#include <vips/vips.h>
int
main( int argc, char **argv )