Jump to content


Photo

Low Color Filetype (bmp, gif, png, tiff) [20091204]


35 replies to this topic

#1 jxp

jxp
  • Members
  • 34 posts
  • Reputation:1

Posted 03 July 2009 - 10:41 PM

I started web development in the dial-up days. In those times every byte counted. Because of this I've developed a habit of using 16-color bitmap and gif files (when appropriate).

This file type plugin allows you to save images as 16 color bitmaps or gifs. Obvously full color photos will look terrible but simple logos and small grayscale images can look good (and save precious bytes :lol: ) . This plugin adds the options Bitmap (low color) and GIF (low color) to the save as type drop down. (and now png and tiff too)

Not massively useful but I wanted it and it was interesting developing them. A 16 color bitmap uses half the space for the image than a 256 color one (it also has a much smaller palette!). A 16 color gif is more efficient to compress with a lower number of colors.

Previous updates
Hidden Content:

UPDATE 04 Dec 2009
Preserve DPI setting when saving

Attached Files


  • 0
Don't know what plugin to use? Try looking in the plugin gallery

#2 msyokm

msyokm
  • Newbies
  • 3 posts
  • Reputation:0

Posted 24 July 2009 - 04:39 PM

Hi jxp,
I was impressed with your plugin, 'cause I have been looking for a program that can save files with a color palette with fewer colors, and of course, free of charge. The paint program that comes with the Windows is not useful for me, whereas Paint.net is far more confortable.

And I'm now wondering your plugin could allow me to save files with binary GIF format, that is, a GIF format with black and white only. If it is possible, would you please let me know?
  • 0

#3 jxp

jxp
  • Members
  • 34 posts
  • Reputation:1

Posted 25 July 2009 - 03:43 PM

It doesn't currently support it explicitly (you could save a black and white image as a 16 color gif). I'll have a look at extending my plugin for you.
  • 0
Don't know what plugin to use? Try looking in the plugin gallery

#4 msyokm

msyokm
  • Newbies
  • 3 posts
  • Reputation:0

Posted 27 July 2009 - 11:00 AM

Many thanks. I know I can count on you. :D
  • 0

#5 jxp

jxp
  • Members
  • 34 posts
  • Reputation:1

Posted 28 July 2009 - 08:46 PM

Update to plugin (see first post)
  • 0
Don't know what plugin to use? Try looking in the plugin gallery

#6 msyokm

msyokm
  • Newbies
  • 3 posts
  • Reputation:0

Posted 02 August 2009 - 12:38 PM

Sorry that it took me so long to get back to you.

By the way, thank you very much for preparing such a useful plug-in!
Your second version covers what I expected!

In addition to expanding supporting filetypes of Paint.net, you have changed usability of the plug-in to a more user-friendly manner.
It really improves the very basic compatibility aspect of Paint.net!!

Thank you JXP!!
:wink:
  • 0

#7 n0tbugme

n0tbugme
  • Members
  • 15 posts
  • Reputation:0

Posted 24 August 2009 - 11:36 PM

Hey jxp, when I first saw this filetype plugin, I thought it would finally be possible to save "16 Bit Depth" value BMP files with PDN... but I quickly realized that I couldn't, I could only get a "4 Bit Depth" value when saving a BMP. :( Would it be possible to add an option to your filetype plugin that would allow the user to save BMP images with a "16 Bit Depth" value? If so, this would be great, Thanks!
  • 0

#8 jxp

jxp
  • Members
  • 34 posts
  • Reputation:1

Posted 31 August 2009 - 08:59 PM

Some updates (as requested) see first post.

Added the 16-bit option for BMP and PNG file types.
Also improved transparancy options.
  • 0
Don't know what plugin to use? Try looking in the plugin gallery

#9 n0tbugme

n0tbugme
  • Members
  • 15 posts
  • Reputation:0

Posted 01 September 2009 - 04:41 AM

Hi jxp. When I save an image with the new 16-bit option for BMP, in the "Summary" area of the BMP file Properties (when you right-click the file and select Properties), the Property of the "Bit Depth" Value is 32. The Bit Depth of the BMP file that I am trying to get, shows up in the Summary section of the Properties as a Value of 16, exactly like when you would save a BMP file in Photoshop when you select (the radio button) 16 as the type of output file.
  • 0

#10 jxp

jxp
  • Members
  • 34 posts
  • Reputation:1

Posted 01 September 2009 - 07:49 AM

n0tbugme,

Yeah I saw that too. As the file was smaller than a 24 bit bitmap I assumed it was just Windows mis-reporting the bit depth.
I don't have access to Photoshop. Could you do a very small sample (e.g. 10px by 10px) image for me and I will try to determine the difference.
  • 0
Don't know what plugin to use? Try looking in the plugin gallery

#11 MontyBurns

MontyBurns
  • Newbies
  • 2 posts
  • Reputation:0

Posted 04 September 2009 - 02:17 PM

hi jxp,
first of all thank you very much for this really useful plugin. I've been searching for it for a long, long time.
I often work with 1-bit depth BMP images (Black/White).
I noticed a little thing that brings to some visualization problems if I use some programs: in the BMP file the color table is saved as an array of 32 bit integers (8 bits for Red, 8 bits for Green and 8 bits for Blue, then other 8 bits for reserved purpose). This reserved bits are set to 0xFF, but if I'm right they should be set to 0.

see http://www.warpspeed.../inf2html.cmd?..\html\book\Toolkt40\MMREF3.INF+2255
  • 0

#12 jxp

jxp
  • Members
  • 34 posts
  • Reputation:1

Posted 25 September 2009 - 08:03 PM

New update in first post to address the issues raised.
  • 0
Don't know what plugin to use? Try looking in the plugin gallery

#13 Myrddin

Myrddin

    Former Moderator

  • Members
  • 4,155 posts
  • LocationSheffield, England.
  • Reputation:2

Posted 25 September 2009 - 11:12 PM

With so many updates, might I suggest the date of the latest update placed in the topic title? It eases user consumption.

Would that be okay?

Everything else looks in tip-top order, well done, jxp. :)
  • 0

#14 MontyBurns

MontyBurns
  • Newbies
  • 2 posts
  • Reputation:0

Posted 29 September 2009 - 11:11 AM

Thank you very much jxp.
Now the plugin works very well!
  • 0

#15 n0tbugme

n0tbugme
  • Members
  • 15 posts
  • Reputation:0

Posted 05 October 2009 - 02:26 AM

Thanks for the update jxp! :D This Filetype Plugin of yours should be part of PDN.

Oh! While using your Plugin, I came across a bug (error). Here is a simple way to reproduce it:

1) Set the size of a blank canvas (doesn't have to be blank, the bug shows up either way) to "256 x 384". (I haven't tried other sizes, but I'm sure the bug might show up again in a different resolution.)

2) Click "File > Save As..."

3) Use any "Low color" Save as type. I used "Bitmap (Low color) (*.bmp)".

Now, in the Save Configuration window, there is no preview of the image. And at the top where it normally says the size of the image, it says "Preview. file size (error)". If you were to click "OK" to save the image when this error occurred in the Save Configuration window, the saved file would not have any data of the image within it, therefore, it would be blank and with a different resolution.
  • 0

#16 jxp

jxp
  • Members
  • 34 posts
  • Reputation:1

Posted 06 October 2009 - 07:25 PM

The error seems to be when the picture is taller than it is wide. I've always used screen sizes (or square) for my testing. I'll investigate.

EDIT: This was a really stupid typo. I was using the height to check things across the width. Now fixed, new dll in first post.
  • 0
Don't know what plugin to use? Try looking in the plugin gallery

#17 danheskett

danheskett
  • Newbies
  • 1 posts
  • Reputation:0

Posted 10 November 2009 - 04:35 PM

Hi - nice work on this plug-in. The fix from October solved an issue I was often having as well.

I am researching an issue that you might be able to confirm. Saving as a low-color TIF, it appears that the image will always revert to 96-DPI. Does that sound possible?
  • 0

#18 n0tbugme

n0tbugme
  • Members
  • 15 posts
  • Reputation:0

Posted 03 December 2009 - 03:11 PM

Hi!

I got a problem with your plugin. As you can see in the screenshot i got no "low color" entries in drop down menu.
The dll is in the Effects folder and i restarted Paint.NET. I don't know what to do. I searched a long time to find this plugin and now it don't work.

My System: WinXP SP3, Paint.NET 3.5.1, Framework 3.5 SP1

Screenshot:
Posted Image

EDIT//
There is no content at "Plugin Load Error".
  • 0

#19 Simon Brown

Simon Brown
  • Members
  • 10,255 posts
  • Reputation:27

Posted 03 December 2009 - 04:37 PM

The dll is in the Effects folder and i restarted Paint.NET.


It should be in the FileTypes folder.
  • 0
Posted Image

#20 n0tbugme

n0tbugme
  • Members
  • 15 posts
  • Reputation:0

Posted 03 December 2009 - 05:08 PM

It should be in the FileTypes folder.

I feel so silly. Thank you very much. The problem is solved.
  • 0