| Poster | Thread |
BrandonLee
|  |
Greyscale jpegs Posted on 16-Apr-2011 10:20:34
| | [ #1 ] |
|
|
 |
Super Member  |
Joined: 15-Dec-2003 Posts: 1355
From: Lisbon, Portugal | | |
|
| A few years ago, Imagine3D started giving me problems by refusing to use greyscale jpegs as textures (AOS 3 through 4.1). Now, while going through pictures of my wedding, ALL Amiga programs refused to load greyscale jpegs, with various errors. Tried Photogenics, ArtEffect, GFXLab, no luck.
The only tools that handle them are PicShow and Multiview. I suspected some datatype issue, but Multiview loads stuff through them, so I don't know. So, I can view the pictures, but no program allows me to actually edit them.
What the hell is going on? Can I solve this?
Thanks in advance.
A1, OS4.1 update 2, Radeon 9200, 512MB. |
|
| Status: Offline |
|
|
broadblues
 |  |
Re: Greyscale jpegs Posted on 16-Apr-2011 10:32:42
| | [ #2 ] |
|
|
 |
Amiga Developer Team  |
Joined: 20-Jul-2004 Posts: 4456
From: Portsmouth England | | |
|
| @BrandonLee
So far as I can tell ImageFX4.5 will handle them correctly. But I only have the greyscale jpegs it creates itself to test with.
If you don't have that it's worth buying just for itself, but if you want some other solution, perhaps you could batch convert the greyscales into colour jpegs using netpbm or similar
update: PPaint 7.1 also seems to open a greyscale jpeg, not necessarily an ideal program to use for editing photos though!
Last edited by broadblues on 16-Apr-2011 at 10:48 AM.
_________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
| Status: Offline |
|
|
broadblues
 |  |
Re: Greyscale jpegs Posted on 16-Apr-2011 10:34:36
| | [ #3 ] |
|
|
 |
Amiga Developer Team  |
Joined: 20-Jul-2004 Posts: 4456
From: Portsmouth England | | |
|
| @broadblues
BTW most photographers I know recomend using colour images for black and white photos, especialy those that are scanned, there's more to "Black & White" than black and white 
_________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
| Status: Offline |
|
|
number6
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 11:48:30
| | [ #4 ] |
|
|
 |
Elite Member  |
Joined: 25-Mar-2005 Posts: 11924
From: In the village | | |
|
| @BrandonLee
Quote:
| Now, while going through pictures of my wedding, ALL Amiga programs refused to load greyscale jpegs, with various errors. |
If you have Imagefx, have you installed this?
#6
_________________ This posting, in its entirety, represents solely the perspective of the author. *Secrecy has served us so well* |
|
| Status: Offline |
|
|
broadblues
 |  |
Re: Greyscale jpegs Posted on 16-Apr-2011 12:38:11
| | [ #5 ] |
|
|
 |
Amiga Developer Team  |
Joined: 20-Jul-2004 Posts: 4456
From: Portsmouth England | | |
|
| |
| Status: Offline |
|
|
number6
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 12:54:01
| | [ #6 ] |
|
|
 |
Elite Member  |
Joined: 25-Mar-2005 Posts: 11924
From: In the village | | |
|
| @broadblues
Quote:
| Haha, good point. I keep forgetting that I wrote a 'fixed' / updated jpegloader! Naturally I'm using it |
Frankly, I'd rather have an uploaded file that we could take a look at. His issue could be SO many things. Progressive .jpg etc. is just a wild guess atm.
#6
_________________ This posting, in its entirety, represents solely the perspective of the author. *Secrecy has served us so well* |
|
| Status: Offline |
|
|
jd997uk
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 13:09:58
| | [ #7 ] |
|
|
 |
Regular Member  |
Joined: 11-Mar-2003 Posts: 135
From: Portsmouth | | |
|
| @BrandonLee
PPaint will load grayscale JPGs (just tried it) and so does ImageFX.
IFX will also allow you to convert them into RGB format (ie 24bit) and save them out as any supported filetype (jpg,tiff,iff,etc), so any application will then read them normally. Couldn't find this option in PPaint though. PPaint seems to only keep it in the greyscale. I need to RTFM I think :~/
-john
Last edited by jd997uk on 16-Apr-2011 at 01:13 PM.
|
|
| Status: Offline |
|
|
broadblues
 |  |
Re: Greyscale jpegs Posted on 16-Apr-2011 18:27:57
| | [ #8 ] |
|
|
 |
Amiga Developer Team  |
Joined: 20-Jul-2004 Posts: 4456
From: Portsmouth England | | |
|
| |
| Status: Offline |
|
|
broadblues
 |  |
Re: Greyscale jpegs Posted on 16-Apr-2011 18:30:12
| | [ #9 ] |
|
|
 |
Amiga Developer Team  |
Joined: 20-Jul-2004 Posts: 4456
From: Portsmouth England | | |
|
| @jd997uk
PPaint can load jpegs but can't save then IIRC (not at my amiga so can't check for certain) in any case it only works with palette mapped images, so is not really useful for manipulating jpegs the colour version of which typically use RGB 24 bits _________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
| Status: Offline |
|
|
sundown
 |  |
Re: Greyscale jpegs Posted on 16-Apr-2011 18:48:51
| | [ #10 ] |
|
|
 |
Elite Member  |
Joined: 30-Aug-2003 Posts: 5120
From: Right here... | | |
|
| @broadblues
Quote:
| Haha, good point. I keep forgetting that I wrote a 'fixed' / updated jpegloader! Naturally I'm using it..... |
Bah, & you're not sharing it with us?  Still using v1.0 here.  _________________ Hate tends to make you look stupid... |
|
| Status: Offline |
|
|
ajs
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 20:57:35
| | [ #11 ] |
|
|
 |
Super Member  |
Joined: 8-Mar-2003 Posts: 1459
From: Surrey | | |
|
| @sundown See Number6's link above for version 1.3 _________________
Everything is proceeding as I have foreseen 
Some people are like slinkies. Not really good for anything but they bring a smile to your face when pushed down the stairs. |
|
| Status: Offline |
|
|
sundown
 |  |
Re: Greyscale jpegs Posted on 16-Apr-2011 22:03:15
| | [ #12 ] |
|
|
 |
Elite Member  |
Joined: 30-Aug-2003 Posts: 5120
From: Right here... | | |
|
| @ajs
Seems I do have the latest installed from depot, but the lib says v1.2 & the load module says v1.0 & the update file says v1.3.
Maybe the lib version is 1.3, but forgot to be changed in the binary? _________________ Hate tends to make you look stupid... |
|
| Status: Offline |
|
|
BrandonLee
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 23:23:25
| | [ #13 ] |
|
|
 |
Super Member  |
Joined: 15-Dec-2003 Posts: 1355
From: Lisbon, Portugal | | |
|
| @broadblues
I would send an example image, but how can I do it? It's fairly big (2.9MB). And I'd need an e-mail from one of you guys. ;)
I tried a few programs and what's weird is that all seem to fail, except PicShow and Multiview. And Imagine3D (the one that really causes me problems, because most bumpmaps I have are indeed grayscale) uses datatypes, like Multiview.
|
|
| Status: Offline |
|
|
BrandonLee
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 23:28:39
| | [ #14 ] |
|
|
 |
Super Member  |
Joined: 15-Dec-2003 Posts: 1355
From: Lisbon, Portugal | | |
|
| @number6
I don't know if I had the updated loader or not, but IMAGEFX2 manages to load the picture ok (IFX was the only I didn't try, because it's not on my main gfx partition...).
Yet, I would like at least that Imagine3D and ArtEffect4 could load them too... ;( Last edited by BrandonLee on 16-Apr-2011 at 11:29 PM.
|
|
| Status: Offline |
|
|
BrandonLee
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 23:29:56
| | [ #15 ] |
|
|
 |
Super Member  |
Joined: 15-Dec-2003 Posts: 1355
From: Lisbon, Portugal | | |
|
| @broadblues
As for examples, at least in Imagine3Ds case, it doesn't load ANY grayscale. And I've tried quite a few, from different sources.
|
|
| Status: Offline |
|
|
number6
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 23:34:35
| | [ #16 ] |
|
|
 |
Elite Member  |
Joined: 25-Mar-2005 Posts: 11924
From: In the village | | |
|
| @BrandonLee
http://os4depot.net/index.php?function=showfile&file=graphics/edit/jpegoptim.lha
(1)Put jpegoptim from the above archive in c: (2)Copy the .jpg images you want to use in Imagine to a directory of your choice - you want to use copies, because these files will be altered from your originals and written back to HD. (3)Open shell and change directory to your directory of choice (4)jpegoptim -v #? (5)you can watch the conversion and output until complete (6)Now see if the altered files will load in Imagine
This should eliminate 2 possibilities of problems- progressive .jpg and Exif. If this doesn't solve it, let us know.
Quote:
| A few years ago, Imagine3D started giving me problems by refusing to use greyscale jpegs as textures (AOS 3 through 4.1). |
Are you saying it never worked from OS3.x on? That's more than a few years ago. heh.
If it really has never loaded greyscale, then you need an operator like "Gray_To_Color" (Adpro) or a similar operator in IFX or SView5. This would mean that Imagine only operates on (and therefore expects) 24bit.
#6
Last edited by number6 on 16-Apr-2011 at 11:58 PM. Last edited by number6 on 16-Apr-2011 at 11:46 PM. Last edited by number6 on 16-Apr-2011 at 11:39 PM. Last edited by number6 on 16-Apr-2011 at 11:36 PM.
_________________ This posting, in its entirety, represents solely the perspective of the author. *Secrecy has served us so well* |
|
| Status: Offline |
|
|
jd997uk
|  |
Re: Greyscale jpegs Posted on 16-Apr-2011 23:37:21
| | [ #17 ] |
|
|
 |
Regular Member  |
Joined: 11-Mar-2003 Posts: 135
From: Portsmouth | | |
|
| @BrandonLee
IFX Lite
Don't know how restricted the above is, but give it a try.
-john |
|
| Status: Offline |
|
|
BrandonLee
|  |
Re: Greyscale jpegs Posted on 18-Apr-2011 16:19:04
| | [ #18 ] |
|
|
 |
Super Member  |
Joined: 15-Dec-2003 Posts: 1355
From: Lisbon, Portugal | | |
|
| @number6
Quote:
| Are you saying it never worked from OS3.x on? That's more than a few years ago. heh.If it really has never loaded greyscale, then you need an operator like "Gray_To_Color" (Adpro) or a similar operator in IFX or SView5. This would mean that Imagine only operates on (and therefore expects) 24bit. |
You seem to be right on the spot. After a quick test, Imagine3D replies "Unsupported 8bit datatype" when trying to load a grayscale jpeg. So, it's apparently a totally unrelated problem to the one I mentioned originally. ;)
Which brings me to this question: can I "make" Imagine3D use these images? Any trick that allows this? |
|
| Status: Offline |
|
|
BrandonLee
|  |
Re: Greyscale jpegs Posted on 18-Apr-2011 16:23:44
| | [ #19 ] |
|
|
 |
Super Member  |
Joined: 15-Dec-2003 Posts: 1355
From: Lisbon, Portugal | | |
|
| @number6
Quote:
| This should eliminate 2 possibilities of problems- progressive .jpg and Exif.If this doesn't solve it, let us know. |
Exif it is.
This is what jpegoptim related:
"1081.jpg 3598x2400 8bit Exif [OK] 2919518 --> 2916304 bytes (0.11%), optimized. jpegoptim: cannot rename temp file."
Again, can I do something about it, other than converting the picture? Some loader/datatype that allowed me (ArtEffect, especially) to use it would be great. |
|
| Status: Offline |
|
|
number6
|  |
Re: Greyscale jpegs Posted on 18-Apr-2011 16:46:41
| | [ #20 ] |
|
|
 |
Elite Member  |
Joined: 25-Mar-2005 Posts: 11924
From: In the village | | |
|
| @BrandonLee
Quote:
| Again, can I do something about it, other than converting the picture? Some loader/datatype that allowed me (ArtEffect, especially) to use it would be great. |
If a program uses datatypes to load .jpg then you'll have support for your files. Older programs are using their own internal routines and were written before progressive .jpg or EXIF files existed. Andy (Broadblues) wrote an uptodate loader that's basically equivalent to what the datatype does. That's why IFX will work with your files. A program that is modular (like Adpro) could have a new loader written. In fact this was done when multipic loader replaced the .iff loader, which no longer functioned. You can write to any author and ask, but I doubt many of the programs you are interesed in are still under development. Lightwave could use Pegger (a file saver) in the background to save .jpg, when Lightwave had no such support of its own. Whether it's possible to do such a thing in reverse (replacing a loader), I have no clue.
Imagine is a different issue, if it only operates on 24bit data. If anyone has any other idea than image conversion, post it here.
#6
Last edited by number6 on 18-Apr-2011 at 04:49 PM.
_________________ This posting, in its entirety, represents solely the perspective of the author. *Secrecy has served us so well* |
|
| Status: Offline |
|
|