News: 11 March 2016 - Forum Rules

Author Topic: I want edit .gim for PSP's image file. please help me.  (Read 4837 times)

dgmkr

  • Jr. Member
  • **
  • Posts: 8
  • Digimon otaku
    • View Profile
I want edit .gim for PSP's image file. please help me.
« on: December 11, 2017, 02:21:18 am »
hello

Do the DigimonAdventure (psp) Hacking now.
I want just edit the logo title image.

it is made by gim.
I dont know that how can i edit by photoshop.
gim to png is perfectly by gimconv (8bit). but its INDEX file, so i cant edit.

anyone know how to edit this file?


hear is the sample file.
http://www.mediafire.com/file/scbmog095ob3m8r/0747.gim
Translate newbie.

Mugi

  • Sr. Member
  • ****
  • Posts: 300
  • Personal text
    • View Profile
    • Blacklabel-translations
Re: I want edit .gim for PSP's image file. please help me.
« Reply #1 on: December 11, 2017, 11:08:42 am »
indexed means that the image has a palette defining it's colors  (128 colors in this case)



i went ahead and converted it to direct color for you, you should be able to edit it fine with photoshop now.

In PSP we trust.

dgmkr

  • Jr. Member
  • **
  • Posts: 8
  • Digimon otaku
    • View Profile
Re: I want edit .gim for PSP's image file. please help me.
« Reply #2 on: December 12, 2017, 10:18:54 am »
thanks for your reply!

I will edit it soon.


Is it possible to convert to gim again?
I mean, I want to reinsert in the ISO file.
For that, I want a file of the same format as the original.
Translate newbie.

dgmkr

  • Jr. Member
  • **
  • Posts: 8
  • Digimon otaku
    • View Profile
Re: I want edit .gim for PSP's image file. please help me.
« Reply #3 on: December 12, 2017, 10:31:56 am »
Translate newbie.

Mugi

  • Sr. Member
  • ****
  • Posts: 300
  • Personal text
    • View Profile
    • Blacklabel-translations
In PSP we trust.

dgmkr

  • Jr. Member
  • **
  • Posts: 8
  • Digimon otaku
    • View Profile
Re: I want edit .gim for PSP's image file. please help me.
« Reply #5 on: December 14, 2017, 04:45:29 am »
Code: [Select]
....P...P.......
0.......€.......
........0...@...@
...............@..
..................
!.1.A.Q.a.q...‘.¡
.±.Á.Ñ.á.ñ...B.’.
².Â.Ò!.!.!2!B!‚!ò!
.!ƒ!“!£!ó!.!d!„"B"
r"¢#ñ1.141T1ô1.1.1e
1õ3ñ1.1.4ñ@.@.@÷A.
Aö@.@H@øDñP.PHPøE
ñP.P.P)P9PiP‰PùFðP
.PZPú`.`.`*`J`Z`j`z`Š
`º`úVð`.`.`+`;`K`[
`k`{`‹`›`«`»`Ë`Û`ë`û
Wðgðhðxðyð‰ðŠ
ð™ðšð›ðªðœð
«ð¬ð.ð¼ð½ð¾ð
ÍðÎðÏðÞðßðïð
ÿð
im sorry that i have another question.

this code is original 0746.gim's palette code
I think it is only 64 color. because it have 8 line


but why png file have 128 color?

wait for your reply
« Last Edit: December 14, 2017, 05:05:28 am by dgmkr »
Translate newbie.

Mugi

  • Sr. Member
  • ****
  • Posts: 300
  • Personal text
    • View Profile
    • Blacklabel-translations
Re: I want edit .gim for PSP's image file. please help me.
« Reply #6 on: December 14, 2017, 11:12:15 am »
because i made it 64 colors to match the size of the original gim you gavr for me just in case you need it to be.
the original gim you gave me is using bgr565 palette mode which gimconv cant do,
so the output at 128 colors is slightly larger than the original file

if it doesnt matter, it can be made any number of colors, a gim is a gim. the game wont know the difference.

here's a 256 color version and 128 color version.

https://dl.dropbox.com/s/tnii6pt7ee1vaiq/128colors.gim
https://dl.dropbox.com/s/khx9psn62ri74sv/256colors.gim
In PSP we trust.

dgmkr

  • Jr. Member
  • **
  • Posts: 8
  • Digimon otaku
    • View Profile
Re: I want edit .gim for PSP's image file. please help me.
« Reply #7 on: December 14, 2017, 07:02:34 pm »
Thank you very much,mugi god :angel:.
And I'm sorry that I didt mean to let you work. :'(
I writed reply that first gim of you first gave me is perfectly work very well.but reply was deleted by moderactor.


I just want you to tell me how to repack gim.
Because there are many files to edit from now on.

I can not ask for your help forever.it will only take away your time.

Can you help me please?

I can use gimconv,photoshop,pngout or any software with windows.
« Last Edit: December 14, 2017, 07:12:25 pm by dgmkr »
Translate newbie.

Mugi

  • Sr. Member
  • ****
  • Posts: 300
  • Personal text
    • View Profile
    • Blacklabel-translations
Re: I want edit .gim for PSP's image file. please help me.
« Reply #8 on: December 14, 2017, 08:43:23 pm »
well there's many ways to deal with such images.

personally what i do is i use gimconv to convert the gim into a png.
the png's are indexed as you said, and photoshop and paintshop pro (which i use) have issues with the alpha channels with indexed images,
so i use imagestudio to convert them to direct color. Then just edit them on paint shop pro, and use imagestudio to reduce them back to indexed colors, and then gimconv to convert them back to gim.

since imagestudio is not freely available and it's quite expensive at that, it's not really a preferred choice of most people.
i dont have a need for alternatives since i own a licence for it, but im sure someone else around the forum has a way to deal with indexed <-> direct color image conversions.

you can just make your direct color png's into direct color gim files using gimconv (it wont let you make an indexed color gim out of a direct color png) but games dont really like that much, most cases where i have attempted this, the direct color images cause severe slowdowns on the games. They are also considerably larger than indexed color images. Aside that they do work.
In PSP we trust.

weissvulf

  • Sr. Member
  • ****
  • Posts: 324
  • Good news! An anomaly solved the enigma.
    • View Profile
Re: I want edit .gim for PSP's image file. please help me.
« Reply #9 on: December 15, 2017, 08:24:29 pm »
You might try Gimp for a free editor that can convert between paletted (aka indexed) and direct-color.

I mainly use an old version of Paintshop and the transparency (aka alpha) for images like PNGs is set under 'Image > Palette > Set Palette Transparency". They may have changed something in newer editions.

Mugi

  • Sr. Member
  • ****
  • Posts: 300
  • Personal text
    • View Profile
    • Blacklabel-translations
Re: I want edit .gim for PSP's image file. please help me.
« Reply #10 on: December 15, 2017, 08:56:52 pm »
You might try Gimp for a free editor that can convert between paletted (aka indexed) and direct-color.

I mainly use an old version of Paintshop and the transparency (aka alpha) for images like PNGs is set under 'Image > Palette > Set Palette Transparency". They may have changed something in newer editions.

i dont know, i use 5.03 from 1999 for my graphics work (just.... dont ask) and it simply cant deal with indexed png's at all. they open fine and you can mess with them and whatnot, but it simply disregards the alpha completely and treats it as not being there.
you can "view paletter transparency" from the colors menu, but even so it will only show one transparent value for the image, as opposed to each color having their own (alpha) which messes them up, not to mention that you cant load the image off maintaining it anyway.

i know atleast some versions of photoshop suffer from the same fate, though truth to be told it's been quite a forever since i abandoned that software.

either way, i remember i once had a software which was meant for optimizing png's and what it did was exactly that, it took a normal direct color png and cruntched it into an indexed one in an attempt to optimize it's filesize.... i forgot what it was called though.
« Last Edit: December 15, 2017, 09:09:03 pm by Mugi »
In PSP we trust.

weissvulf

  • Sr. Member
  • ****
  • Posts: 324
  • Good news! An anomaly solved the enigma.
    • View Profile
Re: I want edit .gim for PSP's image file. please help me.
« Reply #11 on: December 16, 2017, 07:17:15 pm »
I see. It seems not many editors support the 8bit PNGs with a separate alpha for each palette entry. I just tried GIMP and it discards alpha for 8bit PNGs, but I do remember a mention of a PNG plugin for GIMP that better supported PNG options. I'm surprised gimconv doesn't export directly to 32bit PNG since so few editors support 8bit+alpha.

@ dgmkr, if you're still looking for a free converter 'tool chain', you might try pixlr online editor (HERE) to convert the 'indexed' PNG to a 32bit PNG. Most photo editors should edit the 32bit PNG (retaining alpha). Then use PNGoo (HERE) to convert back to 8bit (indexed) PNG+alpha.

Mugi

  • Sr. Member
  • ****
  • Posts: 300
  • Personal text
    • View Profile
    • Blacklabel-translations
Re: I want edit .gim for PSP's image file. please help me.
« Reply #12 on: December 16, 2017, 07:37:44 pm »
i believe gimconv can actually import to 32bit png's but in his case it's not really the issue,
the problem is that gimconv requires an indexed png to make an indexed gim, othervise the output will be direct color and as i mentioned earlier,
while those usually do work on games, they are much larger and due to the shitty nature of th egim library all psp games ever use, they're
particularly prone to slowdowns.

for example, girlfriend of steel which which i released a translation patch for, i made quite a pile of graphics work, and this game
literally consists of nothing but 256color gims. You can spam the screen with as many of them as you want and it's fine, but the moment you
put one direct color gim in it, you get instant 5 fps :P
In PSP we trust.

dgmkr

  • Jr. Member
  • **
  • Posts: 8
  • Digimon otaku
    • View Profile
Re: I want edit .gim for PSP's image file. please help me.
« Reply #13 on: December 17, 2017, 07:04:30 am »


Thanks to mugi, it works very well.

@weissvulf, Thank you for caring me. There is no problem with the previous case anymore.


And another question.

It uses a transparent color for the background.
and It also uses about 50% transparent colors.
Do you know about this?
I mean, how to edit this.

hear is sample gim and 8bit png.
http://dgmkrtrans.tistory.com/attachment/cfile1.uf@997984345A365CB9046ED8.gim
Translate newbie.

Mugi

  • Sr. Member
  • ****
  • Posts: 300
  • Personal text
    • View Profile
    • Blacklabel-translations
Re: I want edit .gim for PSP's image file. please help me.
« Reply #14 on: December 17, 2017, 08:35:47 am »
i dont see anything different on this one really?

it uses transparency to make a see-through effect.
the first image does the same too, with the antialiased borders of the logo to make them look smoother,
the difference here is that it's applied to the whole image instead.

see the picture showing the alpha (transparency) mask for both images;
In PSP we trust.

dgmkr

  • Jr. Member
  • **
  • Posts: 8
  • Digimon otaku
    • View Profile
Re: I want edit .gim for PSP's image file. please help me.
« Reply #15 on: December 17, 2017, 07:06:11 pm »
Sorry.
What you do not understand is that I am not good at English.


This is sample image that 530% zoom with photoshop.

and i cant find alpha mask channel.
This picture was transformed(8bit->32bit) from the site that weissvulf gave me.
In this picture,It looks like the green and the transparent color are merged around the letters.
I dont know how to edit like this.

I am sorry if I am wrong.
« Last Edit: December 17, 2017, 08:15:29 pm by dgmkr »
Translate newbie.

Mugi

  • Sr. Member
  • ****
  • Posts: 300
  • Personal text
    • View Profile
    • Blacklabel-translations
Re: I want edit .gim for PSP's image file. please help me.
« Reply #16 on: December 17, 2017, 09:10:00 pm »
there is no alpha mask channel. because the original image was indexed, the alpha channel has effectively been destroyed.
(more like, it has been merged. it is now a part of the RGB channels)

if you wish to edit whatever on it, you will just have to delete what you dont want, and redraw it.

only way to mess with the alpha on the image is to take it back to its indexed form and change the palette alpha velue entries by hand.
ofcourse, as stated earlier already, this requires specialized software, since photoshop and paintshop pro etc. cant really handle it that well,
which is undestandable since indexed png's are not really common at all in everyday usage.

imagestudio can tamper with the palette alpha (see pic), but even so, you would have either restrict your edits to the existing palette, or create new palette entries for new color/alpha combinations you wish to use. It's really easier to just redraw the whole thing.

« Last Edit: December 17, 2017, 09:25:14 pm by Mugi »
In PSP we trust.

dgmkr

  • Jr. Member
  • **
  • Posts: 8
  • Digimon otaku
    • View Profile
Re: I want edit .gim for PSP\'s image file. please help me.
« Reply #17 on: December 17, 2017, 09:14:30 pm »
I want edit image with alpha+rgb.

Then... if i use imagestudio, can i edit it?

How to convert the 8bit png to rgb+alpha that editable?


I think one of the reasons is that the version of using Photoshop. It is 7.0

December 17, 2017, 10:06:24 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I understand what you said.
Your mean, my png's Alpha chn is broken(merge with RGB chn), so i have to use the right convert tool to original PNG. right?

I've installed Image Studio Lite.
it's.... so hard..  :(

I will keep trying. thx :D
« Last Edit: December 17, 2017, 10:06:27 pm by dgmkr »
Translate newbie.