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
raising profile photo size to comply with frio sidebar profile photo scaling #6009
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change everywhere else we use 175 as a photo size, including in the addons and the default avatar image.
I changed the default avatar and added a 300px version of it, if that's what you meant. For addons I don't think there are changes needed as my initial commit is only for the automated resizing of uploaded profile pictures. |
I understand, but we have different hard-coded images scales:
In I don't have a problem with raising the |
@@ -537,7 +537,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) | |||
if (DBA::isResult($contact)) { | |||
$photo = $contact['photo']; | |||
} else { | |||
$photo = System::baseUrl() . '/images/person-175.jpg'; | |||
$photo = System::baseUrl() . '/images/person-300.jpg'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no "person-300.jpg" on our system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR actually creates one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it.
We have several image sizes for the contact. I'm unsure which size the biggest one does have. Possibly this already helps. |
@annando Please refer to the image scale list I posted earlier. |
So I went to the whole code and changed 175 to 300 where it seemed appropriate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work, I spotted references to 175px in different theme templates but we'll let browsers take care of the downscaling.
@@ -288,7 +288,7 @@ function profile_photo_crop_ui_head(App $a, Image $image) | |||
$height = $image->getHeight(); | |||
|
|||
if ($width < 175 || $height < 175) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized that those values probably need to be raised to 300 as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think so, as this is for upscaling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are probably right, let's see how this pans out.
Yeah, I didn't touch the themes to avoid any breakage. Browser's downscaling should be fine. |
fixing #5992