# More integration with Vampyre Imaging Library, used by default with both FPC and Delphi

**URL:** https://forum.castle-engine.io/t/more-integration-with-vampyre-imaging-library-used-by-default-with-both-fpc-and-delphi/509
**Category:** News
**Created:** [January 28, 2022, 4:48pm UTC](https://forum.castle-engine.io/t/more-integration-with-vampyre-imaging-library-used-by-default-with-both-fpc-and-delphi/509 "2022-01-28T16:48:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [January 28, 2022, 4:48pm UTC](https://forum.castle-engine.io/t/more-integration-with-vampyre-imaging-library-used-by-default-with-both-fpc-and-delphi/509/1 "2022-01-28T16:48:01Z")

</div>

| [![Castle Game Engine editor with 3D level](https://castle-engine.io/wp/wp-content/uploads/2022/01/Zrzut-ekranu-z-2022-01-28-17-35-39-200x113.png)](https://castle-engine.io/wp/wp-content/uploads/2022/01/Zrzut-ekranu-z-2022-01-28-17-35-39.png "Castle Game Engine editor with 3D level") |
| [![Castle Game Engine Lazarus packages](https://castle-engine.io/wp/wp-content/uploads/2022/01/Zrzut-ekranu-z-2022-01-28-16-33-24-200x256.png)](https://castle-engine.io/wp/wp-content/uploads/2022/01/Zrzut-ekranu-z-2022-01-28-16-33-24.png "Castle Game Engine Lazarus packages") |
| [![Castle Game Engine images demo](https://castle-engine.io/wp/wp-content/uploads/2022/01/Zrzut-ekranu-z-2022-01-28-16-36-29-200x118.png)](https://castle-engine.io/wp/wp-content/uploads/2022/01/Zrzut-ekranu-z-2022-01-28-16-36-29.png "Castle Game Engine images demo") |

We’re moving further with [Vampyre Imaging Library](https://imaginglib.sourceforge.io/) integration, to have more features related to image loading and at the same time less code to maintain in _Castle Game Engine_.

1. We now use Vampyre always, by default, with both FPC and Delphi. This makes our code simpler and more consistent.

2. We now rely on Vampyre for loading and saving of BMP, PPM and RGBE image formats. 

3. We synchronized with [latest Vampyre Imaging Library code](https://github.com/galfar/imaginglib), and reenabled JP2 and TIFF saving using Vampyre. We check `TSingleImage.SaveToStream` to know if it’s successful.

4. For now, you can still disable Vampyre usage, by removing `{$define USE_VAMPYRE_IMAGING}` from our [src/common\_includes/castleconf.inc](https://github.com/castle-engine/castle-engine/blob/master/src/common_includes/castleconf.inc).
