We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to make the long pictures display clearly | Forum

Topic location: Forum home » Support » General Questions
Frank Z
Frank Z Jun 9 '15

My users are posting long comics but as you see it's doesn't look clearly even if you clicks and open it. How to fix this problem?

Taissa Team
Taissa Jun 11 '15
Frank Zhang, does the issue occur, if you post this image on our Demo ? If yes, please attach this image. Are you trying to post it in Nesweed?
Frank Z
Frank Z Jun 15 '15

@Taissa Yes, it does happened. Seems like some kind of compression made it unclear.

That's absolutely not good for those comics poster. :(

Frank Z
Frank Z Jun 15 '15

Here is the origin picture:

EDIT: 

I understand compression is necessary in newsfeed. But if nobody can be able to read it, that's not good.

Maybe oxwall can make the long picture more clear by determine it's heights. That's would be appreciated. We love comics.

The Forum post is edited by Frank Z Jun 15 '15
Taissa Team
Taissa Jun 18 '15
Frank Zhang, if you would like to display such kind of images like it shown at screenshot below, this is considered as custom code modification.



You will need to make changes for photo plugin  and  system plugins files.
Go to ow_plugins/photo/bol/photo_service.php file and find line:

    CONST DIM_PREVIEW_HEIGHT = 400;

Change the value to 6000, for example.
Then go to ow_system_plugins/base/bol/attachment_service.php file and find line:

           $dimensions = array('width' => 1000, 'height' => 1000);


Change the value 'height' => 1000 to 6000, for example.
After this go to Admin Area > Appearance > Edit Theme > CSS section and add the following code:

.ow_newsfeed_item_picture img {max-height:6000px !important;}


However you should remember that all your custom code modifications will be overwritten after update and you will need to make them again.

The Forum post is edited by Taissa Jun 18 '15