Short: V2.0- makes Photoshop Jpegs normal Jpegs Author: Mark Tierno Uploader: drstrange usa net Type: gfx/conv Architecture: m68k-amigaos You ever notice how Photoshop jpeg files aren't quite like normal jpegs? That not all jpegs saved out from Photoshop will view properly? That's because Photoshop writes some extra junk (thumbnail informtation I'm told) to the front of the file. Most any jpeg viewer recognizes a jpeg by the first few bytes, specifically they look for "JFIF" after the first six bytes. The problem starts because sometimes the thumbnail part starts with it's own "JFIF" header, sometimes not, resulting in files with tweo such headers, or sometimes a header about a hunfdred or so bytes into the file where the software doesn't look for it The result is painful encounters with Photoshop jpegs. Solution? Well, you COULD do what I first did, and load it into a text editor and manually strip out that extra annoying hazzard- tedious at best. Or you could do it the easier way. Yep, you guessed it- this program. It does the same thing that you would do in a text editor- it strips away the extra "JFIF" header, saving out a basically normal jpeg file (or at least a workable one). Why Did I write it? I had to convert some Photoshop jpegs and didn't know if there were any other programs like this out there. There may very well be, I don't know. In any event, I needed the practice writing in C++, so here it is. Usage: Photostrip The source is that of the original photoshop jpeg file, and the destination is a desired directory (not file name, just the directory path). For a given , the results put into the destination directory will be the files: ".JFIF" . Note that the previous version of this program required the "-s" and "-d" switches in front of the various paths; but as you can see this is no longer the case, just enter the source file with path First and the destination path Second. What's more, if a path or name has any spaces in it then just enclose the whole pathname in double quotes and things will be just fine. That's it, a normal jpeg. A simple enough program to use, and simple enough to write (this readme is already longer than the source code). Warranty This file is releaced as Freeware (as if there's enough to this program to bother charging money for), though I retain full rights to it. If you liike it, feel free to send me email, left over pocket change, a chocolate bar, whatever; if you don't like it, then you've obviously never encountered Photoshop jpegs before. As well, I am not to be held responsible for any harm this program may do to you, your computer, your first born, or to be held accountable for,... . History v1.0 - first release v1.1 - forgot to put in a version string- fixed. made the creation of the thumbnail file an option only (-t) for those that don't need it (like me). v2.0 - -t switch eliminated- now completely useless. eliminated need for "-s" and "-d" switches, just enter the pathnames in correct order now. Fixed an error in stripping the extrenuous data- turns out I was stripping too much and this resulted in wrong colors and pallette- Fixed. Bugs Still having some problems with the photoshop jpegs that have their one and only header a hundred or so bytes down. I tried writting in my own header at the begining and eliminating the second one but it still wouldn't view as a jpeg, so for these files it just does as the old way- erasing everything up until that jpeg header. This probably gives the wrong resolution and the colors may be off but at least it's a workable jpeg. Output jpegs will view properly and all, but under BME they won't load saying that it has some extrenuous bytes. However, other graphix conversion programs like GFXCon can handle it and convert it to a jpeg form that BME likes. Future? See above bugs- I've learned my leason, I'll never say a program's finished again, even if it might be :) Other programs I wrote: Galactic Empires (GalEmp.lha) - 1 to 8 player interstellar strategy game with a killer AI. Phoenix Code (available on http://members.tripod.com/~Dr__Strange <-- that's with 2 underlines) - fractal encryption program. Contact: drstrange@usa.net