Pictures for technology page make transparent + better quality output #58

Closed
opened 2024-06-12 13:51:59 +00:00 by mik-tf · 11 comments
Owner

Situation

  • Images with transparent background appear with a grey background, instead of being transparent

Todo

  • We need at least that the technology pictures have transparent background

@ehab

Can you have a look? @sabrinasadik told me you could help with this.

I share here pictures with transparent background

tech_1tech_2tech_3tech_4

# Situation - Images with transparent background appear with a grey background, instead of being transparent # Todo - We need at least that the technology pictures have transparent background @ehab Can you have a look? @sabrinasadik told me you could help with this. I share here pictures with transparent background ![tech_1](/attachments/902d6cb1-97e1-42da-a91c-7860497cce50)![tech_2](/attachments/9e64e185-4dd6-4db2-8c28-69f4b5a8aa65)![tech_3](/attachments/8745e608-1231-4839-b56a-0e38e636fc83)![tech_4](/attachments/28399f11-2aaf-4796-b25e-2066033361ac)
ehab was assigned by mik-tf 2024-06-12 14:05:20 +00:00
Author
Owner

Update

Also, it seems that pictures are not well displayed (the quality of the graphics is poor). It seems it wasn't like this before. I don't know if something changed at some point. Maybe it can be improved. Thanks!

# Update Also, it seems that pictures are not well displayed (the quality of the graphics is poor). It seems it wasn't like this before. I don't know if something changed at some point. Maybe it can be improved. Thanks!
mik-tf changed title from Pictures for technology page make transparent to Pictures for technology page make transparent + better quality output 2024-06-13 15:18:13 +00:00
mik-tf added this to the Project Inca Website Optimization project 2024-06-13 19:18:58 +00:00
Owner

image

@mik-tf picture looks good for me at a 1920*1080 screen
also, I see that you used the images with gray background #eef6ff not transparent if you use a transparent image like the attached
ll not work right at dark mode because of the black text

image

can you send me a screenshot of an image with poor quality?

![image](/attachments/279fd344-cac4-47ff-93d3-665027d369a7) @mik-tf picture looks good for me at a 1920*1080 screen also, I see that you used the images with gray background #eef6ff not transparent if you use a transparent image like the attached ll not work right at dark mode because of the black text ![image](/attachments/bdd7af20-d6ed-484a-a796-6510c6a10747) can you send me a screenshot of an image with poor quality?
Author
Owner

@ehab Thanks so much! Clearly going in the right direction.

Here are some pictures that don't come out right: image

image


The image next to smart contract for it looks great with the transparent background.

I understand about the text in black. Can you update the 4 images on tech with the transparent background and cropping the image so we don't see the text?

E.g. just the picture not the Quantum-Safe Storage text. It's not needed as it's already in the text next to the picture.

Thanks a lot!

@ehab Thanks so much! Clearly going in the right direction. Here are some pictures that don't come out right: ![image](/attachments/4b3a484a-a2c7-4d00-8f31-ed04a79b60c2) ![image](/attachments/6915ce0d-6d3f-4c8a-8f21-ae6f739e56fd) --- The image next to smart contract for it looks great with the transparent background. I understand about the text in black. Can you update the 4 images on tech with the transparent background and cropping the image so we don't see the text? E.g. just the picture not the Quantum-Safe Storage text. It's not needed as it's already in the text next to the picture. Thanks a lot!
1009 KiB
957 KiB
Member

I've just created the content for the builders page (this page has been added to the development_builders_test branch for now).

However, the image quality is very poor (images are blurred and sizes seem incorrect). Can you please check if this is also the case on your sides? @ehab @mik-tf

Thank you!

I've just created the content for the builders page (this page has been added to the development_builders_test branch for now). However, the image quality is very poor (images are blurred and sizes seem incorrect). Can you please check if this is also the case on your sides? @ehab @mik-tf Thank you!
Author
Owner

I did some testing and I found that for example I can get a clear picture by adding layout:

    image={{
      src: '~/assets/images/test_image4.jpg',
      alt: '',
      layout: '100px 100px, 100vw',
    }}

image

Of course the image is now too big, but just trying to understand more how it works.

The layout part came from the file: src/utils/images-optimization.ts

I did some testing and I found that for example I can get a clear picture by adding layout: ``` image={{ src: '~/assets/images/test_image4.jpg', alt: '', layout: '100px 100px, 100vw', }} ``` ![image](/attachments/db19340e-d8b9-4070-b6b4-db719f080920) Of course the image is now too big, but just trying to understand more how it works. The layout part came from the file: `src/utils/images-optimization.ts`
1.1 MiB
Owner

I fixed some images at development_fix_images branch

image
imageat

I fixed some images at development_fix_images branch ![image](/attachments/75688ec2-0614-4d33-974a-515ea6bea4a0) ![image](/attachments/89cb6b6a-5ced-4f5d-877d-33d0518164da)at
1.1 MiB
1.9 MiB
Author
Owner

Thanks @ehab it looks way better now.

Do you think you can check the image quality of the other images on the website? Tech page is done. No pictures on about page. So index, builder landing page + post pages, etc.

It might aready be fixed with what you did: I will have access to a computer later to check.

Thanks again. So much better.

Thanks @ehab it looks way better now. Do you think you can check the image quality of the other images on the website? Tech page is done. No pictures on about page. So index, builder landing page + post pages, etc. It might aready be fixed with what you did: I will have access to a computer later to check. Thanks again. So much better.
Owner

I fixed some images at Builder but other images need high resolution because it's too low like Elestio image
also, I see hero images fixed at 1024 so need the image to be 1024 or more not less

I fixed some images at Builder but other images need high resolution because it's too low like Elestio image also, I see hero images fixed at 1024 so need the image to be 1024 or more not less
Author
Owner

That's great @ehab thanks a lot.

So what is needed for images to come out right? Just to make sure the resolution is above or at 1024? Thanks.

Can you merge/PR your changes?

That's great @ehab thanks a lot. So what is needed for images to come out right? Just to make sure the resolution is above or at 1024? Thanks. Can you merge/PR your changes?
Author
Owner

Oh yeah! the images look amazing. well done.

Oh yeah! the images look amazing. well done.
Author
Owner

@ehab nailed it. closing.

@ehab nailed it. closing.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tfgrid/www_projectinca#58
No description provided.