*** 2011/08/26 ***
now based on 2011/08/22 developers released version
gap update to 2.7.0
apng fixed Error loading UI's problem
==============================
This is the version that i compiled, if someone want to used
It is based on git-master June 25, 2011
GIMP-2.7.7z.001GIMP-2.7.7z.002Portable and 32bits only
include some plug-ins(GAP, Mathmap, ...) and scripts(may had some chinese language)
and display WARNING deprecated message at console window only
I did not test all script files
and there may have some scripts that i never used
so i can't guarantee that all scripts are working properly
You need download both files, GIMP-2.7.7z.001, GIMP-2.7.7z.002
and put them into the same directory
then use
7-Zip unzip GIMP-2.7.7z.001
7-Zip will auto search 002 and unzip it
GAP now can use mplayer base to extract video
to do this, you need to edit gimprc file in the settings folder
and add a line
(mplayer_prog "path of youe mplayer.exe")
like this
(mplayer_prog "D:\\mplayer\\mplayer.exe")
this is the source of GimpLauncher
user directory was set at "settings"
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char currDir[MAX_PATH], *s;
char szEnv[MAX_PATH];
if( !GetModuleFileName(NULL, currDir, MAX_PATH) ) {
fprintf(stderr, "Couldn't retrieve current directory!\n");
return 1;
}
s = strrchr(currDir, '\\');
if( s ) *s = 0;
SetCurrentDirectory(currDir);
// set user directory environment variable
sprintf(szEnv, "%s\\settings", currDir);
if( SetEnvironmentVariable("GIMP2_DIRECTORY", szEnv) == 0 ) {
fprintf(stderr, "Unable to set GIMP2_DIRECTORY environment variable\n");
return 1;
}
// set file search path for exe, dll
sprintf(szEnv, "%s\\bin", currDir);
if( SetEnvironmentVariable("PATH", szEnv) == 0 ) {
fprintf(stderr, "Unable to set PATH environment variable\n");
return 1;
}
// python path
sprintf(szEnv, "%s\\lib\\gimp\\2.0\\python", currDir);
if( SetEnvironmentVariable("PYTHONPATH", szEnv) == 0 ) {
fprintf(stderr, "Unable to set PYTHONPATH environment variable\n");
return 1;
}
// check start parameter, so you can use GimpLauncher to open image in file explorer
char fullExeName[MAX_PATH];
sprintf(fullExeName, "%s\\bin\\gimp-2.7.exe", currDir);
if( argc > 1 )
sprintf(fullExeName, "%s %s", fullExeName, argv[1]);
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&si, sizeof(si));
ZeroMemory(&pi, sizeof(pi));
si.cb = sizeof(si);
printf("\nLaunching gimp-2.7... ");
if( !CreateProcess(NULL, fullExeName, NULL, NULL, FALSE, DETACHED_PROCESS, NULL, currDir, &si, &pi) ) {
fprintf(stderr, "\nUnable to launch codeblocks.exe\n");
system("pause");
return 1;
}
return 0;
}