-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image looking pixelated on higher resolution screens #108
Comments
SUI does have high dpi image substitution, but I don't really have any experience with it. This thread links to an example and suggests it might not work all that well. I don't think you could make it work with binary images, but you can... and pretty much have to customize the dialog afterwards, so you could try to add the images yourself from a file path rather than an embedded image. If that doesn't work, I'm not sure what you could do... Other than maybe use UXP. |
if I take the same image with higher DPI and convert it to binary with your dialog builder, it appears very big and I don't like it. Is there any way the image can be uploaded that way but resized within the binary or maybe with a line of code ? |
That's what I was saying about adding the images yourself. I don't see a way for the image substitution to work unless the source is an image path, which is not something you can do with SDB (ScriptUI Dialog Builder) directly, since it can only embed them.
I would try the image substitution using filenames talked about in the selected answer, since that is at least somewhat natively supported. |
Finally did I find my way creating a polygon path and, for the implementation, using some code directly from the BattleStyle_tester from adamplouff (see his GitHub) The only thing is that it's a lil bit unstable. |
Hello, it looks like the image gets pixelated whenever the scriptUI is used on a 2k or 4k monitor.
![image](https://private-user-images.githubusercontent.com/132411106/281101143-5560d152-be28-4ed1-ac15-717c2626682a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk0MTksIm5iZiI6MTczOTE3OTExOSwicGF0aCI6Ii8xMzI0MTExMDYvMjgxMTAxMTQzLTU1NjBkMTUyLWJlMjgtNGVkMS1hYzE1LTcxN2MyNjI2NjgyYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwOTE4MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZDRjMjRiNmFlOWY3YWQyNWY5MzQ0NjU1Y2YxOTE5YmExZjczOWM0M2Q3YzM3YjExYjM2MmEzYzk5ZDExMGVlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.vtiSEBEb3U8O-f2CyYp9YhiN-5Kgp0xvkIYm2Oku1Aw)
![image](https://private-user-images.githubusercontent.com/132411106/281101805-66e7d206-a765-4bc6-95a4-6061cdbd1d3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk0MTksIm5iZiI6MTczOTE3OTExOSwicGF0aCI6Ii8xMzI0MTExMDYvMjgxMTAxODA1LTY2ZTdkMjA2LWE3NjUtNGJjNi05NWE0LTYwNjFjZGJkMWQzYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwOTE4MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02M2M3ZTcyNDA1ZjQ5YWE4MDMxYWIyNzRlNWYyYjljMjJkZDZjZDA1YWViZTY4YjVkY2VkM2ZhZDZjNWY2Y2U0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.xE-Gx-vcDIoEUNM51lIn33axDtKUu7rvUcKNMQ3KbWI)
Here's what I mean :
4k monitor :
2k monitor (1920x1080) :
I was wondering if you can change its interpolation to something smoother such as bilinear within the encoding method that is used by the script ?
The text was updated successfully, but these errors were encountered: