In SWFTools a programs called gfx2gfx
is available to do this task, but it's not officially available precompiled.
It can convert SWF, PDF or image to SWF, PDF, ebook or image.
For discard downscaling for rasterized image (default: 72dpi) we use the provided by @m-p-y: add -r
attribute to increase maxdpi