bmp2dhr

bitmap to double hi-res (bmp2dhr)

“Hi all,

Looks like Bill's link to grab bmp2dhr for macos is a 404 these days. Anyone have a link to a current site for the static binary?

Thanks!” — Presley Acuna macgui.com usenet: comp.sys.apple2.programmer

You might want to try buckshot apple2.gs

The Wayback machine is your friend. hoop-la.ca/apple2/appleoldies/bmp2dhr archive.org

Below is an updated makefile that probably works better than the one I created way back in 2015:
# https://nullprogram.com/blog/2017/08/20/
.POSIX:
CC     = cc
CFLAGS = -DMINGW # -O3 -Wno-unused-result -Wno-format -include ctype.h
all: b2d
test: b2d bmp2dhr.zip
	unzip -oj bmp2dhr.zip bmp2dhr/bmp/lenna140.bmp
	./b2d lenna140.bmp hgr
	ls -la LENNA140C.BIN
b2d: b2d.c
	$(CC) $(LDFLAGS) $(CFLAGS) b2d.c -o b2d
	strip b2d
ulong:
	unzip -j bmp2dhr.zip bmp2dhr/src/b2d.c bmp2dhr/src/b2d.h bmp2dhr/src/tomthumb.h
	grep ulong *.[ch]
b2d.c: bmp2dhr.zip b2d.h tomthumb.h
	unzip -p bmp2dhr.zip bmp2dhr/src/b2d.c | sed -e 's/ulong/u_int32_t/g' > b2d.c
b2d.h: bmp2dhr.zip
	unzip -p bmp2dhr.zip bmp2dhr/src/b2d.h | sed -e '/typedef unsigned long ulong;/d' -e 's/ulong/u_int32_t/g' > b2d.h
tomthumb.h: bmp2dhr.zip
	unzip -p bmp2dhr.zip bmp2dhr/src/tomthumb.h > tomthumb.h
clean:
	rm -fr bmp2dhr b2d b2d.c b2d.h tomthumb.h BMP2DHR lenna140.bmp LENNA140C.BIN
bmp2dhr.zip:
	################ DO NOT download files using make ################
	#
	# curl -O http://www.appleoldies.ca/cc65/programs/dhgr/bmp2dhr.zip
	#
	exit 1

The makefile was tested using Linux. It should also work with macos using Xcode developer.apple.com

painters lodge

Notes

Link

Bmp2DHR , Apple II Graphics and Googling for Heroes appleoldies.com