Open utterances-bot opened 4 years ago
Good app but dificult to used.
Curious if there is a way to convert the color format to CHSV(255,255,255) through you software? It looked like some importing of templates was possible but could not find any guidance in Docs. Thanks!
@NarcisoC, look at custom preprocessing script - https://lcd-image-converter.riuson.com/en/docs/options/conversion/prepare/
Great software and after a few clicks easy to use! The only thing I found was the lack of a 8bpp color mode preset in the conversion, but that's quickly fixable.
Подскажите, как написать шаблон для шрифтов, что бы было как у TheDotFactory-0.1.4. Массив символов и второй массив с шириной символа и его смещением в первом массиве. Спасибо.
@zelenig , например, так:
$(start_block_header)
#include <stdint.h>
struct descriptor_info {
int width;
int offset;
};
$(end_block_header)
static const uint$(img_data_block_size)_t $(doc_name_ws)_char_bitmaps[] = {
$(start_block_images_table)
// at $(out_char_offset) '$(out_char_text)' ($(out_image_width) pixel(s) wide)
$(out_image_preview)
$(out_image_data),
$(end_block_images_table)
};
static const descriptor_info $(doc_name_ws)_descriptors[] = {
$(start_block_images_table)
{ $(out_image_width), $(out_char_offset) }$(out_comma) // '$(out_char_text)'
$(end_block_images_table)
};
Здравствуйте! Еще раз побеспокою. Не получается, я почти также пробовал. Вместо $(out_char_offset) выводится "value not defined". Еще вопрос, как в блок $(start_block_images_table) добавить полный список символов в шрифте (то есть всю таблицу символов, а лучше до последнего используемого символа), но которые отсутствуют в блоке $(img_data_block_size), нужно добавить с $(out_char_offset) равным нулю.
Приведённый мной код работает с последней версией программы. Попробуйте обновиться.
Включение отсутствующих символов не предусмотрено. Вместо этого вы можете добавить в шрифт все символы, но ненужным установить размер в 1 пиксел, например. А в получившемся коде макросами заменить это на ноль.
Hello, Please check my similar project link removed It's my pleasure to have your suggestion and advices.
With best regard.
@Masoud-Ebrahimi its very simple, I have seen many utilities of this type. I've done something similar myself: https://github.com/riuson/lcd-bitmap-converter-obsolete
Links will be deleted later.
@zelenig, посмотрите.
а почему в таком семействе шрифтов как Calibri нету кирилици ?
@AlexanderKostik, есть кириллица. Можете вручную ввести нужные символы, либо выбрать Cyrillic в фильтрах.
какая галка отвечает за параметр bits per pixel: 24 ? мне нужно чтобы он был равен 1
Подготовка - Предварительная обработка - Тип. Там есть и цветные, и монохромные заготовки, сравните.
Hi, there's problem with RLE compression - "show preview" button shows converted data, but after conversion to output file image array is empty (without RLE everything is ok) Color R5G6B5, block size 16bit, RLE Compression from 2 blocks, Revision b5ea0e1 from 2021-07-05
Hello, i seen push image on stm32f429 on here https://community.st.com/s/question/0D50X00009XkeDY/stm32f429idiscovery-with-lcd-load-logo-or-image i have a question. How to config file .h to push image different size on stm32f429? Thank you
@thehuy2000, hello, In the message from 18 september you can see example files. Width and height are encoded according to template file. Just create image file of desired size.
@BartoszKubiak, hello. Please send me an example of image and exported preset via email.
@thehuy2000, hello, In the message from 18 september you can see example files. Width and height are encoded according to template file. Just create image file of desired size
Thank for reply @riuson. I seen example file. now, i configed file .h but the image is displayed not expected
my code config from code example
#ifndef rect_blue_H_
#define rect_blue_H_
#include <stdint.h>
// struct packing, pragma for GCC !!!
#pragma pack(push, 1)
typedef struct rect_blue_tagBITMAPFILEHEADER {
uint16_t bfType;
uint32_t bfSize;
uint16_t bfReserved1;
uint16_t bfReserved2;
uint32_t bfOffBits;
} rect_blue_BITMAPFILEHEADER; // size is 14 bytes
typedef struct rect_blue_tagBITMAPINFOHEADER {
uint32_t biSize;
uint32_t biWidth;
uint32_t biHeight;
uint16_t biPlanes;
uint16_t biBitCount;
uint32_t biCompression;
uint32_t biSizeImage;
uint32_t biXPelsPerMeter;
uint32_t biYPelsPerMeter;
uint32_t biClrUsed;
uint32_t biClrImportant;
} rect_blue_BITMAPINFOHEADER; // size is 40 bytes
typedef struct rect_blue_tag_Struct {
// offset 0, size 14
rect_blue_BITMAPFILEHEADER fileHeader;
// offset 14, size 40
rect_blue_BITMAPINFOHEADER infoHeader;
// offset 54, size 5590 words
uint16_t data[28800];
} rect_blue_Struct;
rect_blue_Struct rect_blue = {
{
0x4d42u,
sizeof(rect_blue_BITMAPINFOHEADER) + sizeof(rect_blue_BITMAPFILEHEADER) + (28800 * 2),
0x0000u,
0x0000u,
sizeof(rect_blue_BITMAPINFOHEADER) + sizeof(rect_blue_BITMAPFILEHEADER)
},
{
sizeof(rect_blue_BITMAPINFOHEADER),
120,
160,
1u,
16,
0x00000003u,
(28800 * 2),
0x00000000ul,
0x00000000ul,
0x00000000ul,
0x00000000ul
}
my array generated by LCD Image convert. Thanks
@thehuy2000, first image 120x160 gives me file of right size: 120*160 = 19200 uint16's
...
typedef struct SampleImage_tag_Struct {
// offset 0, size 14
SampleImage_BITMAPFILEHEADER fileHeader;
// offset 14, size 40
SampleImage_BITMAPINFOHEADER infoHeader;
// offset 54, size 19200 words
uint16_t data[19200];
} SampleImage_Struct;
SampleImage_Struct SampleImage = {
{
0x4d42u,
sizeof(SampleImage_BITMAPINFOHEADER) + sizeof(SampleImage_BITMAPFILEHEADER) + (19200 * 2),
0x0000u,
0x0000u,
sizeof(SampleImage_BITMAPINFOHEADER) + sizeof(SampleImage_BITMAPFILEHEADER)
},
{
sizeof(SampleImage_BITMAPINFOHEADER),
120,
160,
1u,
16,
0x00000003u,
(19200 * 2),
0x00000000ul,
0x00000000ul,
0x00000000ul,
0x00000000ul
},
...
What is a second image (328x437)?
@riuson I want to display the first image on the kit but I get the error as the second image. i cant't generate right size 19200. i had set like picture below but size generated is 28800 like picture Why? Thanks sir
@thehuy2000 , images are visible only for you. Please email them or post them via github interface.
@riuson i updated. can you see?
@thehuy2000 , yes. You have selected an R8G8B8 (24 bit), but you shoud use R5G6B5 (16 bit). Difference on the Matrix page.
@riuson why the software doesn't have that option?
@thehuy2000, it have: https://github.com/riuson/lcd-image-converter/blob/030b30dcfb9d26bfaae1bbb52877519f96304dd4/controls/setup/dialogoptions.cpp#L197 I think, you have accidentally deleted it. To restore, read here: https://lcd-image-converter.riuson.com/en/docs/others/command-line/
@riuson thank you and happy new year sir.
HI there is any preset to obtain the type of coding to match the Adafruit font format that comes on the fonts folder from the Adafruit_GFX library?
Здравствуйте, решил попробовать создать картинку при помощи данной программы для дисплея SSD1306 и столкнулся с проблемой байты данных оказались перевернуты, программное исправление в коде МК конечно решило вопрос, но можно ли это исправить в lcd-image-converter
Здравствуйте, Переставить биты можно в этом окне:
Saturday, October 15, 2022, 9:57:23 PM, you wrote:
Здравствуйте, решил попробовать создать картинку при помощи данной программы для дисплея SSD1306 и столкнулся с проблемой байты данных оказались перевернуты, программное исправление в коде МК конечно решило вопрос, но можно ли это исправить в lcd-image-converter — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
-- Best regards, Vladimir
К сожалению нет картинки
Понял, вкладка перестановка
Я не знаю, о чем ты говоришь... я давно тебя спрашивал??
"El día en que sepamos exactamente lo que la electricidad es, se contará un evento probablemente mayor, más importante que cualquier otro registrado en la historia de la raza humana, entonces será una mera cuestión de tiempo cuando el hombre logre triunfar en conectar su maquinaria a la verdadera rueda de trabajo de la naturaleza, veo la emoción que viene!"
-Nikola Tesla (1865-1943)
On Sat, Oct 15, 2022 at 12:00 PM Aleksey-748 @.***> wrote:
Понял, вкладка перестановка
— Reply to this email directly, view it on GitHub https://github.com/riuson/lcd-image-converter-docs/issues/2#issuecomment-1279795541, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7JK5OWEMH27D4RYRJ7ZA3WDLWM7ANCNFSM4PY7WMYA . You are receiving this because you commented.Message ID: @.***>
И еще один вопрос, если основное сканирование сверху вниз то в получаемом файле предварительный рисунок правильный. https://raw.githubusercontent.com/Aleksey-748/jpeg/main/12.jpg но если использовать основное сканирование слева на право то получается так https://raw.githubusercontent.com/Aleksey-748/jpeg/main/1.jpg
????
"El día en que sepamos exactamente lo que la electricidad es, se contará un evento probablemente mayor, más importante que cualquier otro registrado en la historia de la raza humana, entonces será una mera cuestión de tiempo cuando el hombre logre triunfar en conectar su maquinaria a la verdadera rueda de trabajo de la naturaleza, veo la emoción que viene!"
-Nikola Tesla (1865-1943)
On Sat, Oct 15, 2022 at 11:17 AM Vladimir @.***> wrote:
Здравствуйте, Переставить биты можно в этом окне:
Saturday, October 15, 2022, 9:57:23 PM, you wrote:
Здравствуйте, решил попробовать создать картинку при помощи данной программы для дисплея SSD1306 и столкнулся с проблемой байты данных оказались перевернуты, программное исправление в коде МК конечно решило вопрос, но можно ли это исправить в lcd-image-converter — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
-- Best regards, Vladimir
— Reply to this email directly, view it on GitHub https://github.com/riuson/lcd-image-converter-docs/issues/2#issuecomment-1279786508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7JK5P7H2LXOF3J4BH7XTTWDLRJJANCNFSM4PY7WMYA . You are receiving this because you commented.Message ID: @.***>
I suppose you are asking me to help with an image, but there is no image attached to the message...
"El día en que sepamos exactamente lo que la electricidad es, se contará un evento probablemente mayor, más importante que cualquier otro registrado en la historia de la raza humana, entonces será una mera cuestión de tiempo cuando el hombre logre triunfar en conectar su maquinaria a la verdadera rueda de trabajo de la naturaleza, veo la emoción que viene!"
-Nikola Tesla (1865-1943)
On Sat, Oct 15, 2022 at 11:17 AM Vladimir @.***> wrote:
Здравствуйте, Переставить биты можно в этом окне:
Saturday, October 15, 2022, 9:57:23 PM, you wrote:
Здравствуйте, решил попробовать создать картинку при помощи данной программы для дисплея SSD1306 и столкнулся с проблемой байты данных оказались перевернуты, программное исправление в коде МК конечно решило вопрос, но можно ли это исправить в lcd-image-converter — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
-- Best regards, Vladimir
— Reply to this email directly, view it on GitHub https://github.com/riuson/lcd-image-converter-docs/issues/2#issuecomment-1279786508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7JK5P7H2LXOF3J4BH7XTTWDLRJJANCNFSM4PY7WMYA . You are receiving this because you commented.Message ID: @.***>
The question was asked by riuson and not sifre, if you are a developer, then help me figure out the image orientation in the generated C file.
Hello, @sigifre You can unsubscribe from this topic ( https://github.com/riuson/lcd-image-converter-docs/issues/2 ). You are receiving emails just because of subscribe.
no idea what you're talking about. Sorry.
"El día en que sepamos exactamente lo que la electricidad es, se contará un evento probablemente mayor, más importante que cualquier otro registrado en la historia de la raza humana, entonces será una mera cuestión de tiempo cuando el hombre logre triunfar en conectar su maquinaria a la verdadera rueda de trabajo de la naturaleza, veo la emoción que viene!"
-Nikola Tesla (1865-1943)
On Sun, Oct 16, 2022 at 9:29 AM Vladimir @.***> wrote:
Hello, @sigifre https://github.com/sigifre You can unsubscribe from this topic ( #2 https://github.com/riuson/lcd-image-converter-docs/issues/2 ). You are receiving emails just because of subscribe.
— Reply to this email directly, view it on GitHub https://github.com/riuson/lcd-image-converter-docs/issues/2#issuecomment-1279992350, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7JK5NEHUSDD5VKTNX7RBTWDQNM5ANCNFSM4PY7WMYA . You are receiving this because you were mentioned.Message ID: @.***>
Having an issue with the converted output file. I do Image->Import. Under Options->Conversion I have selected Color A8R8G8B8. I use the preset Scanning and preset Preprocessing. When I click "Show Preview" I see the converted image as a uint32_t array correctly. When I click File->Convert and save as "c" file all the data is in uint8_t GRAYSCALE format. Why is this happening? I do not know what I did wrong. It is set up correctly but no matter what preset I choose I only get grayscale image data in the c array.
classes/imageeditor/toolfill.cpp: In member function ‘bool ImageEditor::Tools::ToolFill::fillArea(int, int, const QColor&)’:
classes/imageeditor/toolfill.cpp:194:41: error: invalid use of incomplete type ‘const class QPainterPath’
194 | if (!this->mParameters->selectedPath().isEmpty()) {
| ~~~~~~~^~
In file included from /usr/include/aarch64-linux-gnu/qt5/QtGui/qtransform.h:43,
from /usr/include/aarch64-linux-gnu/qt5/QtGui/qimage.h:48,
from /usr/include/aarch64-linux-gnu/qt5/QtGui/QImage:1,
from classes/imageeditor/toolfill.h:24,
from classes/imageeditor/toolfill.cpp:20:
/usr/include/aarch64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
54 | class QPainterPath;
| ^~~~
make: *** [Makefile:1972:release/linux/.obj/toolfill.o] failed 1
As I compile it on my RaspberryPi 5(arm64) device,it shows that fault and I can't compile and build it,could you please tell me how to solve this panic or recheck the source code, thanks.
@SmallC500 , try add #include <QPainterPath>
just after #include <QPainter>
in toolfill.cpp, or switch to develop branch.
@riuson switch to develop branch works well,thanks.I love those opensource projects and its spirit
Hello, today I created a font for the SSD1306 and noticed a strange thing when scanning from top to bottom or bottom to top, the $(out_image_preview) block is built correctly, but when scanning from left to right or right to left, something strange turns out.
scanning from top to top
static const uint8_t image_data_Font_0x2b[FIX_ZERO_LENGTH(40)] = {
//
//
//
//
//
// #
// #
// #
// #
// #########
// #
// #
// #
// #
//
//
//
//
//
//
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08,
0x08, 0x08, 0xff, 0x08, 0x08, 0x08, 0x08, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
and scanning from left to right
static const uint8_t image_data_Font_0x2b[FIX_ZERO_LENGTH(30)] = {
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// #
//
//
//
//
//
//
//
//
//
// #
//
//
//
//
//
//
//
//
//
// #
//
//
//
//
//
//
//
//
//
// #
//
//
//
//
//
// #
// #
// #
// #
// #
// #
// #
// #
// #
//
//
//
//
//
// #
//
//
//
//
//
//
//
//
//
// #
//
//
//
//
//
//
//
//
//
// #
//
//
//
//
//
//
//
//
//
// #
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0xfc, 0x40,
0x40, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
About project | LCD Image Converter
https://lcd-image-converter.riuson.com/en/about/