From: | Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com> |
---|---|
To: | Dave Page <dpage(at)pgadmin(dot)org> |
Cc: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: [pgAdmin][RM7187] ERD Image png 0 bytes |
Date: | 2022-04-07 04:45:35 |
Message-ID: | CAM9w-_mk8_aoQzYpRo+Kx-uE95kpX73sLZWp1OMdxwa6WHjhxA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi Dave/Hackers,
Attached is the updated patch to change the message.
On Wed, Apr 6, 2022 at 6:07 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:
> Hi
>
> On Wed, 6 Apr 2022 at 13:32, Aditya Toshniwal <
> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>
>> Hi Hackers,
>>
>> Due to the limitations of HTML Canvas, if the image exceeds max
>> width/height of 32767 then the image becomes empty.
>> To fix this, I have set the max limit of width and height to 32767. The
>> ERD diagram will be cut if it exceeds the limit. The ERD tool will also
>> throw an alert to inform the user in that case.
>> Please review.
>>
>> [image: image.png]
>>
>
> "The downloaded image has exceeded the maximum size of 32767 x 32767
> pixels, and has been cropped to that size."
>
> Can we similarly limit the size of the design canvas? 32767 x 32767 is
> huge.
>
There are just too many tables to fit in. I tried to create an SVG image
instead of PNG and it went 200MB.
I will see if we can limit the size of canvas as well.
>
> --
> Dave Page
> Blog: https://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EDB: https://www.enterprisedb.com
>
>
--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Software Architect | *edbpostgres.com*
<http://edbpostgres.com>
"Don't Complain about Heat, Plant a TREE"
Attachment | Content-Type | Size |
---|---|---|
RM7187_v2.patch | application/octet-stream | 1.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Fahar Abbas | 2022-04-07 08:17:40 | Re: pgAdmin4 v6.8 candidate builds |
Previous Message | Dave Page | 2022-04-06 12:36:53 | Re: [pgAdmin][RM7187] ERD Image png 0 bytes |