Java resize method creates invalid JPG
maT42
Joined: 2008-05-06
Posts: 7 |
Posted: Tue, 2008-05-06 14:57 | |||||
Hi guys, Example of an invalid file which has been created using a perfectly normal original (unedited, directly from cam transferred and doublechecked) is attached. The log is attached. BTW... I think that the importance of the GR module is underestimated. Lots of people who are supposed to add pictures are dumb users who dont know anything about computers. Instead of adding/improving all kinds of nasty G2 features, there should be a focus on developing a really easy-to-use and elegant applet which can be used to add pics. In my optinion, the current version doesn't fulfill this requirements. Sorry for my straigh-forward approach to say that... you're doin great work, but i think it can be improved! Check out the facebook solution, its easy & powerful & it provides not more than needed.
|
||||||
Posts: 7
In order to check that the created jpg is not completely nonsense, please download and view it using a viewer of your choice... somehow, the resize process screws the picture.
Is it possible to build the jar-file of the applet on my own? It seems to be necessary to sign the jar... I don't wanna look for the code which stops the initialization of the applet if its unsigned. Would it be possible to get either the password/key or the spot in the code which stops the initialization routine?
Cheers,
Mat
Posts: 7
Argh sorry for being so impolite, just read my own text and could beat myself
Wasnt supposed to be offending... long day, slightly tired & the upload doesnt work... sorry.
Cheers,
Mat
Posts: 7
Hey guys,
I did some research... after I noticed that it's perfectly easy to build my own applet, I tested some stuff and found out that the used colormodel in com.gallery.GalleryRemote.util.ImageUtil.createResizedCopy(...), which is BufferedImage.TYPE_INT_ARGB [with alpha], causes the problem.
Changing the model to e.g. BufferedImage.TYPE_INT_RGB or BufferedImage.TYPE_3BYTE_BGR works perfectly for me.
Cheers,
Mat
Posts: 15
Hi Mat,
Where have you done this change ? Is it in the jar file directly ?
could you tell me how to proceed because this issue is annoying to me.
Tks,
Xavier