Skip to content
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

[issue]the asset preview img size looks weird. #1939

Closed
sync-by-unito bot opened this issue Aug 12, 2022 · 24 comments
Closed

[issue]the asset preview img size looks weird. #1939

sync-by-unito bot opened this issue Aug 12, 2022 · 24 comments

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Aug 12, 2022

User story
As a Capture App user, I want see the normal size of preview photo so that I don't have the concern of my asset.

I think the solution could be

  1. maybe could crop preview size
  2. let user could press the img & display the original size for captures.

┆Issue is synchronized with this Asana task by Unito
┆Created By: Kenny Hung

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 16, 2022

➤ Ethan Wu commented:

Scott Yan can you share some examples with me. also share the product ids. thanks!

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Kenny Hung commented:

Ethan Wu
in asset page.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Kenny Hung commented:

In prod page.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Ethan Wu commented:

ok what i can do is can change the settings in asset / product pages to maintain the aspect ratio.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Ethan Wu commented:

this is what maintain aspect ratio of image looks like. Scott Yan let me know if this looks better

Kenny Hung let me know what you think

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Scott Yan commented:

it's look better than now ( v 0.63.1 )

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Ethan Wu commented:

ok so i'll set it so that the images on asset and product page will maintain aspect ratio.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Kenny Hung commented:

wait~
if the picture is vertical?

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Ethan Wu commented:

Kenny Hung so bubble supports the following runtime rendering: rescale & stretch.

Maintaining the aspect ratio we have the following.

(Left) Rescale (Middle) Stretch (Right) Original Image

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Kenny Hung commented:

The rescale looks better.
👍 Ethan Wu

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Ethan Wu commented:

Kenny Hung the issue is the edges are cropped. let me see what I can do

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Ethan Wu commented:

Kenny Hung rescale horizontal images don't look good. plus the edges are not rounded like in the original design.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Ethan Wu commented:

I did some reading and it looks like standard phone aspect rations are either 1:1 to 4:5. I've set the aspect ration to 4:5 and adjusted the runtime rendering to stretch (since its better to fill the space rather than have dead space). this is what a vertical and horizontal image looks like. let me know what you think.

Kenny HungScott Yan

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Kenny Hung commented:

Ethan Wu I think this ( https://app.asana.com/0/0/1202789809053002/1202811344860460/f ) is looks better than fill space.
but maybe it's okay, and we could let user press the img and display the original img?

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 17, 2022

➤ Ethan Wu commented:

Kenny Hung img preview implementation

@sync-by-unito sync-by-unito bot closed this as completed Aug 17, 2022
@sync-by-unito sync-by-unito bot reopened this Aug 18, 2022
@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 18, 2022

➤ Ethan Wu commented:

Kenny Hung just realized that the "press img and display the original image" function won't work well for asset-page because the back button is leveraged with ionic.

if that's the case maybe its better to just do "rescale" runtime rendering?

what your thoughts?

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 18, 2022

➤ Kenny Hung commented:

I think this part is okay, because I think we could use other ways let user see the original img.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 18, 2022

➤ Ethan Wu commented:

Kenny Hung so just to clarify let us set the image preview to

  1. rescale and have the empty space
  2. set to stretch

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 18, 2022

➤ Kenny Hung commented:

Ethan Wu
#1 is like this Screen Shot 2022-08-17 at 1.12.56 PM.png ( https://app.asana.com/app/asana/-/get_asset?asset_id=1202811344860459 )
#2 is like this Screen Shot 2022-08-17 at 1.26.11 PM.png ( https://app.asana.com/app/asana/-/get_asset?asset_id=1202811344860463 ) & Screen Shot 2022-08-17 at 1.26.25 PM.png ( https://app.asana.com/app/asana/-/get_asset?asset_id=1202811344860465 )
right?

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 18, 2022

➤ Ethan Wu commented:

Kenny Hung correct

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 18, 2022

➤ Kenny Hung commented:

Ethan WuTammy Yang
About preview img display

  1. rescale and have the empty space, example ( https://app.asana.com/app/asana/-/get_asset?asset_id=1202811344860459 )
  2. set to stretch, example ( https://app.asana.com/app/asana/-/get_asset?asset_id=1202811344860463 )

I prefer #1. Although there is some space, the preview is more like the original.

@sync-by-unito sync-by-unito bot closed this as completed Aug 22, 2022
@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 22, 2022

➤ Ethan Wu commented:

I have submitted a code review with:

  • runtime rendering: rescale

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Aug 26, 2022

➤ Kenny Hung commented:

on 0.64.2, qa passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants