Results 1 to 26 of 26

Thread: help : Psd optimizer

  1. #1
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    help : Psd optimizer

    Few day ago I have finished a method to optimize (don?t compress) the .psd files in big percent (can be more 50% in dependence of the file. but my program are programmed in (lua simply) and a don?t support big files because is a Script language (I?m not a programmer ) ),

    Some body can programe it ?,bot with my name as the creator of the method and freeware program.Is a easy to programe it , Tell me about it.

    If in the moment I?m not online you can send me a email.
    Last edited by Yuri Grille.; 20th April 2009 at 18:28.

  2. #2
    Member
    Join Date
    Sep 2008
    Location
    France
    Posts
    856
    Thanks
    447
    Thanked 254 Times in 103 Posts
    Do you mean *.psd, as in Photoshop Document, or *.pst, as outlook mailbox ?

  3. #3
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post
    *psd of PhotoShop.

  4. #4
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    301
    Thanks
    26
    Thanked 22 Times in 15 Posts
    Quote Originally Posted by Yuri Grille. View Post
    *psd of PhotoShop.
    so its optimizer which means the resulted file is readable with photshop and no qality loss ?

    can you summerize your method

  5. #5
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    Yes this optimization is eliminate a unneded data in .psd

    This optimization is lossless , I don?t touch the pictures (no qality loss) .You can view a .psd optimized in this link http://sites.google.com/site/compact...attredirects=0


    If you can programe the method send me a message please.The method is very easy.

  6. #6
    Member
    Join Date
    Oct 2007
    Location
    Germany, Hamburg
    Posts
    408
    Thanks
    0
    Thanked 5 Times in 5 Posts
    1) Why don't you give details what you really did / optimize? I doubt you will win 50% on all psd files because this depends on the implementation (without knowing what you did)

    2) If you provide an optimized psd file we need a "normal" one because without this is useless.

  7. #7
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    Sorry , This is the original file

    Sorry , I?m send to my web the original file ,this is the original file

    Link http://sites.google.com/site/compact...attredirects=0

    The difference is too much:

    Psd optimized and unpaqued : 3.26 MB (3,429,115 bytes)
    Psd non-optimized and unpaqued : 6.44 MB (6,755,163 bytes)

  8. #8
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    301
    Thanks
    26
    Thanked 22 Times in 15 Posts
    Quote Originally Posted by Yuri Grille. View Post
    Sorry , I?m send to my web the original file ,this is the original file

    Link http://sites.google.com/site/compact...attredirects=0

    The difference is too much:

    Psd optimized and unpaqued : 3.26 MB (3,429,115 bytes)
    Psd non-optimized and unpaqued : 6.44 MB (6,755,163 bytes)
    it seems that you made an internal link for the second image as its duplicate.. futher more if i compress with 7-zip ,stuffit12

    6.44>1.09mb - 2.21mb
    3.26>1.09mb - 1.01mb

    your method needs more testing on other images to verify your acheivement

  9. #9
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    If you wana ,send to my another .psd

    If you wana ,send to my another .psd and I go to optimize it.

  10. #10
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    301
    Thanks
    26
    Thanked 22 Times in 15 Posts
    Quote Originally Posted by Yuri Grille. View Post
    If you wana ,send to my another .psd and I go to optimize it.
    try this one:
    http://rapidshare.com/files/22431235...sample.7z.html

    original 5.63mb
    7-zip 2.68mb
    Last edited by maadjordan; 22nd April 2009 at 11:26.

  11. #11
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    I can`t download a file from RapidShare

    Hey man , put your *psd file in other place.

  12. #12
    Member
    Join Date
    Aug 2008
    Location
    Saint Petersburg, Russia
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://narod.ru/disk/8000001000/Hair_sample.7z.html
    There you go
    Don't get put off by russian language - just type in 6 digits and press the green button, then wait for 10 seconds, and that's it.

  13. #13
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    I don`t now , I try and try but the files dont download

    I don't now , I try and try but the files dont download, send to my email.

  14. #14
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,612
    Thanks
    30
    Thanked 65 Times in 47 Posts
    Quote Originally Posted by Yuri Grille. View Post
    This optimization is lossless , I don?t touch the pictures (no qality loss).
    But you can't restore a bit to bit identical file, right?

  15. #15
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    identical file?

    --But you can't restore a bit to bit identical file, right?

    No,this method only delete a uneeded data , some people here have a lossless-obsession


    The important data is the important data
    Remember this.

  16. #16
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,612
    Thanks
    30
    Thanked 65 Times in 47 Posts
    Quote Originally Posted by Yuri Grille. View Post
    --But you can't restore a bit to bit identical file, right?

    No,this method only delete a uneeded data , some people here have a lossless-obsession


    The important data is the important data
    Remember this.
    PSDs may support signatures at some point (or they already do).
    Some people checksum their data.
    It would be better if your transform was fully lossless, but it's fine anyway.

  17. #17
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    ok m^2 , but somebody can help me?

    ok m^2 , but somebody can help me to program this simple optimization ?
    Please

  18. #18
    Member
    Join Date
    Aug 2008
    Location
    Saint Petersburg, Russia
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Weeell, what do you have at the moment? The idea of the algorythm? A sketch of a script? Maybe you could share it with us - then somebody might have a try at programming it?

  19. #19
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    Smile Yes,

    --Weeell, what do you have at the moment? The idea of the algorythm? A sketch of a script? Maybe you could share it with us - then somebody might have a try at programming it?


    Yes,I send the algorythm to some people but nothing , I send this to Bulat ,Encode (no have time) and Precomp Author is taking a look but nothing.I put the a condition ,the program need to be freeware GPL and me as author idea.

  20. #20
    Member
    Join Date
    Oct 2007
    Location
    Germany, Hamburg
    Posts
    408
    Thanks
    0
    Thanked 5 Times in 5 Posts
    I think it would be more interesting for some people if you show based on the specification of psd what you really did.
    Often these optimizations are only optimizations on the first look because a program needs a)a lot more memory to read b)a lot more time to read or c)a lot more time to make changes.
    Surely it could still be interesting for lossy en- and decoding. Personally I would be more interested in a lossless compression and decompression but yeah that has not much to do with your work because the file wouldn't be usable.

  21. #21
    Member Yuri Grille.'s Avatar
    Join Date
    Mar 2009
    Location
    ****
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post

    lossless compression psd

    I think it would be more interesting for some people if you show based on the specification of psd what you really did.
    Often these optimizations are only optimizations on the first look because a program needs a)a lot more memory to read b)a lot more time to read or c)a lot more time to make changes.
    Surely it could still be interesting for lossy en- and decoding. Personally I would be more interested in a lossless compression and decompression but yeah that has not much to do with your work because the file wouldn't be usable.

    Simon say:
    --I think it would be more interesting for some people if you show based on the specification of psd what you really did.

    This method is easy , to get idea you can open PhotoShop and Make a new doc inside put you picture and save this with all layers visible named Pic1.psd .ok

    Second pass--Open this psd and make invisible all layers (don't delete) and go to menu..file..Save AS :
    Save this with another name example Pic2.psd .Now go to explorer and search the files ,take a look and compare his sizes,

    Pic1.psd -- too big
    Pic2.psd -- too more small.

    This tip don't touch the pictures only delete unneeded data.

    How to make this without PhotoShop ?
    I discover this few days ago comparing the files Pic1.psd and Pic2.psd with a program named WinMerge :

    To make this manual you search the string "8BIMPatt" and delete all the data from this point to the end .After add this code ready to download from my page :
    http://sites.google.com/site/compact...attredirects=0

    This optimization can be upgraded ...
    Thad is all,now I'm waiting for some good people to program this.

    -Simon say :
    Personally I would be more interested in a lossless compression and decompression

    Yes , I would be more interested in a lossless compression.

  22. #22
    Member
    Join Date
    Oct 2007
    Location
    Germany, Hamburg
    Posts
    408
    Thanks
    0
    Thanked 5 Times in 5 Posts
    The problem is that someone has to be interested
    You cut off information that are maybe unimportant for you but others name there layers to have a better overview. psd files are mainly for working with them not for distribution.
    I could easily do it but I don't see the sense. Also this could be extendable with reading the header to find out the location of the block to cut off (I'm sure). That would speed up everything MUCH. You could try this by searching for the offset where you find the code-word as a DWORD or QWORD. Maybe you will find something that looks fine. Better surely is to read the specification. If you do so I will write a short tool.
    Last edited by Simon Berger; 24th April 2009 at 00:47.

  23. #23
    Member
    Join Date
    Oct 2007
    Location
    Germany, Hamburg
    Posts
    408
    Thanks
    0
    Thanked 5 Times in 5 Posts
    I had a short look at the psd specification (for example here), tried your provided psd and re-checked on one of my own. The result is every time the same. They are all invalid psd files. The plugins for Paint .net and IrfanView both can't open the file.
    Photoshop can? It's still out of interest if it is an invalid file. Maybe there is a chance to delete less, change some length values and so on. But this method is too rough.

  24. #24
    Tester
    Black_Fox's Avatar
    Join Date
    May 2008
    Location
    [CZE] Czechia
    Posts
    471
    Thanks
    26
    Thanked 9 Times in 8 Posts
    Photoshop 6:

    pht_new.psd - incompatible with this version of Photoshop
    pht (Optimized).psd - unexpected end of file
    I am... Black_Fox... my discontinued benchmark
    "No one involved in computers would ever say that a certain amount of memory is enough for all time? I keep bumping into that silly quotation attributed to me that says 640K of memory is enough. There's never a citation; the quotation just floats like a rumor, repeated again and again." -- Bill Gates

  25. #25
    Programmer osmanturan's Avatar
    Join Date
    May 2008
    Location
    Mersin, Turkiye
    Posts
    651
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Photoshop CS2 could not open it either
    BIT Archiver homepage: www.osmanturan.com

  26. #26
    Member
    Join Date
    May 2008
    Location
    England
    Posts
    325
    Thanks
    18
    Thanked 6 Times in 5 Posts
    I thought it may have been something todo with the layers, and/or the one where you reduce the bit-depth of the alpha channels(PS stores alpha channels in something stupid like 32-bit where 8-bit is optimal)
    Sorry to say that this trick has been around for many many years.
    What is happening is this:
    When you save a Photoshop image with Max Compatibility enabled a Flattened(ie all layers are merged) version of the images is also saved inside the .psd file so it has compatibility issues with some other software, IrfanView for example will flash a warning about "No composite image found in file". And when all the layers are hidden, obviously there is no data on display(to be Flattened) and so there is no data to be saved which is why the file size is reduced by a huge amount. When Max Comp is on and the layers are just hidden this Flattened image is still within the file, it's just that it's a plain white image, which is obviously very highly compressible and it the 8BIM format has built in very basic compression(prolly RLE or something)
    Doing it manually is more like butchering the file with a meat cleaver not optimising it And people leave on Max Compat for a reason...so every app that supports PSD can display something so this idea is a no-go imo.
    Last edited by Intrinsic; 25th April 2009 at 09:32.

Similar Threads

  1. *.PSD ("Optimizer")
    By Yuri Grille. in forum Data Compression
    Replies: 0
    Last Post: 2nd February 2010, 21:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •