Dicebear

Latest version: v3.9.3

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

9.0.0

This release fixes a compatibility issue with Next.js caused by the converter
that can convert generated SVG avatars to PNG and JPEG. As of this version, the
converter is no longer part of the core library and must be installed
separately.

Breaking changes

- `toDataUri` is now synchronous and `toDataUriSync` has been removed
accordingly.
- `toPng` and `toJpeg` have been removed. These functions can still be used if
the `dicebear/converter` library is installed, which provides these two
methods.

Before:

js
import { createAvatar } from 'dicebear/core';
import { bottts } from 'dicebear/collection';

const avatar = createAvatar(bottts);
const png = await avatar.toPng();


After:

js
import { createAvatar } from 'dicebear/core';
import { bottts } from 'dicebear/collection';
import { toPng } from 'dicebear/converter';

const avatar = createAvatar(bottts);
const png = await toPng(avatar);


See [Documentation](https://www.dicebear.com/how-to-use/js-library/converter/)
for more information.

- `toFile` has been removed as the behaviour of the function cannot be kept
consistent across the environments. Such a method must be implemented
yourself.
- `toArrayBuffer` for SVG format has been removed.

New features

- `toPng` and `toJpeg` now support `fonts` as an option to set custom fonts. See
[Documentation](https://www.dicebear.com/how-to-use/js-library/converter/) for
more information.

8.0.0

A major update with a small fix that changed the output of the avatars in some
cases. As soon as a fix changes the output of the avatars, we release a major
update to ensure that the avatars of a major version remain consistent. **This
update is backwards compatible and should not cause any issues.**

A bug with random backgrounds has been fixed. These were not consistent between
browsers due to their implementation. This problem has been fixed and the
backgrounds should now be calculated identically in all browsers.

Further information on this bug can be found in this issue:
https://github.com/dicebear/dicebear/issues/394


ℹ️ Changelog

To find the full documentation go to [https://dicebear.vhjan.me/](https://dicebear.vhjan.me/)\
You can click certain `blocks` to go to its documentation page.\
\
If you encounter any bugs or errors, please open an [issue](https://github.com/jvherck/dicebear/issues).

***

3.9.3

2025-03-03

Changed
- [`DAvatar`](https://dicebear.vhjan.me/reference/avatar#class-davatar) now has a new parameter `save_to_cache` (default True) to choose whether to save
avatars to the cache or not. Caching them will make it easier and quicker to access
the avatars again, and will reduce outgoing API calls.

***

3.9.2

2025-01-04

Back-end

The back-end has been reworked a lot to make the whole framework faster and more efficient. The package now also supports caching to avoid making redundant requests.

A safer way of making requests to avoid hanging indefinitely or raising generic/unnecessary errors has been implemented.

***

2.9.2

2024-07-28

Added

* New styles [`dylan`](https://dicebear.vhjan.me/start/customization#styles) and [`glass`](https://dicebear.vhjan.me/start/customization#styles)
* New modern alternative file formats [`webp`](https://dicebear.vhjan.me/start/customization#formats) and [`avif`](https://dicebear.vhjan.me/start/customization#formats) (use these instead of `png` or `jp(e)g`)

***

2.7.5

2024-07-06

Back-end

* Dicebear version upgrade to 9.x

Improvements

* Added tox for code quality automation

Changed

* Moved style metadata to separate file [`dicebear.metadata.Metadata`](https://dicebear.vhjan.me/reference/metadata#variables)

***

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.