MyBB Community Forums
[How To?] How to convert image .jpg? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] How to convert image .jpg? (/thread-228607.html)



How to convert image .jpg? - serhatakgl - 2020-07-16

<div class="member_head" style="background-image:url(https://website.com/uploads/profilepics/profilepic_{$memprofile['uid']}.jpg);" >

I want to make a profile like a social media and I do it. I add cover photo system on my website. This sistem works using the custom profile field and members would add cover photo URL manually. I wanted to do this automatic.
When somebody upload a photo, picture uploads this way (uploads/profilepics/profilepic_userID.jpg) But if somebody has .png or other image format, I can't see cover photo because my image format is .jpg 
Is there a easy way to do this? Perhaps I can open .php file and add .png, .jpeg to .jpg because this file has convert size.
I use this plugin: https://community.mybb.com/mods.php?action=view&pid=127

I'm waiting your help. 

       


RE: How to convert image .jpg? - Omar G. - 2020-07-17

You can access the image from that plugin in profiles using {$memprofile['profilepic']}. It doesn't seem to be necessary to sanitize such variable.


RE: How to convert image .jpg? - serhatakgl - 2020-07-17

(2020-07-17, 06:52 AM)Omar G. Wrote: You can access the image from that plugin in profiles using {$memprofile['profilepic']}. It doesn't seem to be necessary to sanitize such variable.

Thank you bro you solved it! I have a last question, can you help me? I changed all of 200x200 to 1500x1500 in .php (plugin) but nothing changed. When I upload image I see notice. Do you know that where can I change it?

   


RE: How to convert image .jpg? - Omar G. - 2020-07-17

The plugin has a group permission or setting for that, use the setting instead of modifying the files.