From 95e83f46e3257376ad70a7845685fc0ca3380d02 Mon Sep 17 00:00:00 2001 From: script kiddie Date: Wed, 11 Dec 2024 16:04:08 +0100 Subject: [PATCH] update --- image_core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_core.go b/image_core.go index 3cdd6fa..9e5f8d8 100644 --- a/image_core.go +++ b/image_core.go @@ -16,7 +16,7 @@ func (m *embedHandler) EmbedDataIntoImage(coverImage image.Image, data []byte, b } RGBchannels := u.ExtractRGBChannelsFromImageWithConCurrency(coverImage, m.concurrency) - if (len(data)*8)+32 > (len(RGBchannels) * 3 * (int(bitDepth) + 1)) / 8 { + if (len(data)*8)+32 > len(RGBchannels)*3*(int(bitDepth)+1) { return nil, fmt.Errorf("error: Data too large to embed into the image") }