Skip to content
Browse files

Minor text changes

  • Loading branch information...
1 parent e0bb7e2 commit 9187d26bdea4641b89faaa378774ab214f4384d9 @iloveitaly committed Mar 2, 2012
View
1 .gitignore
@@ -0,0 +1 @@
+build
View
18 Image2Web.xcodeproj/project.pbxproj
@@ -29,7 +29,7 @@
279AAAB90DD4C79B00EF8D6C /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = "<absolute>"; };
279AAB400DD4C89800EF8D6C /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
32A70AAB03705E1F00C91783 /* Image2Web_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Image2Web_Prefix.pch; sourceTree = "<group>"; };
- 8DD76FA10486AA7600D96B5E /* image2web */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = image2web; sourceTree = BUILT_PRODUCTS_DIR; };
+ 8DD76FA10486AA7600D96B5E /* Image2Web */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Image2Web; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -76,7 +76,7 @@
1AB674ADFE9D54B511CA2CBB /* Products */ = {
isa = PBXGroup;
children = (
- 8DD76FA10486AA7600D96B5E /* image2web */,
+ 8DD76FA10486AA7600D96B5E /* Image2Web */,
);
name = Products;
sourceTree = "<group>";
@@ -100,7 +100,7 @@
name = Image2Web;
productInstallPath = "$(HOME)/bin";
productName = Image2Web;
- productReference = 8DD76FA10486AA7600D96B5E /* image2web */;
+ productReference = 8DD76FA10486AA7600D96B5E /* Image2Web */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */
@@ -110,7 +110,11 @@
isa = PBXProject;
buildConfigurationList = 1DEB927808733DD40010E9CD /* Build configuration list for PBXProject "Image2Web" */;
compatibilityVersion = "Xcode 2.4";
+ developmentRegion = English;
hasScannedForEncodings = 1;
+ knownRegions = (
+ en,
+ );
mainGroup = 08FB7794FE84155DC02AAC07 /* Image2Web */;
projectDirPath = "";
projectRoot = "";
@@ -160,23 +164,23 @@
GCC_PREFIX_HEADER = Image2Web_Prefix.pch;
INSTALL_PATH = "$(HOME)/bin";
PRODUCT_NAME = Image2Web;
+ SDKROOT = macosx10.6;
ZERO_LINK = YES;
};
name = Debug;
};
1DEB927608733DD40010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = (
- ppc,
- i386,
- );
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
+ ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Image2Web_Prefix.pch;
INSTALL_PATH = "$(HOME)/bin";
PRODUCT_NAME = image2web;
+ SDKROOT = macosx10.6;
};
name = Release;
};
View
7 Image2Web.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:Image2Web.xcodeproj">
+ </FileRef>
+</Workspace>
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/Mike.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
4 color_fix.bash
@@ -1,15 +1,13 @@
#!/bin/bash
if [ -z $1 ]; then
- echo "No dir specified"
+ echo "No directory specified"
exit 1
fi
targetDir="$1"
targetDir=${targetDir%/} # remove trailing slash if there is one
-# convert -colorspace RGB oldcymk.jpg jpg:newrgb.jpg
-
find "$targetDir" -name "*.png" -or -name "*.jpg" -or -name "*.jpeg" | while read line; do
echo "Optimizing $line"
image2web "$line"
View
4 readme.md
@@ -3,6 +3,10 @@ Alot of images I would get from designers were saved in CMYK instead of RGB, poo
I wrote this tool to convert CMYK images to RGB, strip color profiles, and get some of the file optimization benefits that Preview.app provided.
+#Installation
+* copy image2web to /usr/bin or other bin directory
+* `color_fix.bash` uses optipng. Install using `brew install optipng`
+
#Usage
color_fix.bash ~/Sites/websites/images

0 comments on commit 9187d26

Please sign in to comment.
Something went wrong with that request. Please try again.