PDA

View Full Version : Images under attached images do not resize


Edman
07-05-2016, 01:18 PM
I'm having a really weird problem.

I run a photo site, we don't use thumbnails, so its really important that large pictures uploaded are resized to browser width.

If I upload a picture and insert it into the post, it will resize correctly as I resize the browser.

<div class="content">
<div id="post_message_639120">
<blockquote class="postcontent restore">
sdgfadgfadgfadfg<img src="http://forum.fourthirdsphoto.com/attachment.php?attachmentid=49911&amp;d=1467730308" border="0" alt="Name: 15-07-01-21-24-40_P7012441.JPG
Views: 8
Size: 570.1 KB" style="float: CONFIG" />
</blockquote>
</div>




</div>


If I upload a picture and then leave it there without adding it to the post, it appears in a box, and the picture won't resize


<div class="content">
<div id="post_message_639120">
<blockquote class="postcontent restore">
sdgfadgfadgfadfg
</blockquote>
</div>


<div class="attachments">




<fieldset class="postcontent">
<legend><img title="Attached Images" src="images/misc/paperclip.png" class="inlineimg" alt="Attached Images"> Attached Images</legend>
<img class="attach" src="attachment.php?attachmentid=49911&amp;stc=1&amp;d=14677303 08" alt="">&nbsp;
</fieldset>


</div>
<!-- / attachments -->



</div>


Instead of resizing, under the post, a navigation bar appears.

You can check the attached images to see the difference.

Tried changing to default skin, no change.

Any ideas?

squidsk
07-05-2016, 02:03 PM
Why not use thumbnails?

Dragonsys
07-05-2016, 04:40 PM
You need an Image Resizer plugin. This is the one I use: https://vborg.vbsupport.ru/showthread.php?t=237650

Edman
07-05-2016, 06:26 PM
Why not use thumbnails?
Because they're tiny?


You need an Image Resizer plugin. This is the one I use: https://vborg.vbsupport.ru/showthread.php?t=237650

I don't really think that is the issue. If I copy

<vb:if condition="$show['imageattachment']">
{vb:raw post.imageattachments}
</vb:if>


Into the post, the pictures resize just fine. If I keep them inside the attachments div, they no longer resize.

So I'm now keeping that as a solution

Lynne
07-06-2016, 06:17 PM
Can we get a link to view the problem? I'm thinking you could probably write some CSS to fix the issue.

Edman
07-06-2016, 06:24 PM
Well, I can't give you a link because first I switched to display attachments outside of the attachment box (which "fixed" the issue), but then I switched to simply having large (600px) thumbnails, because while the images resized to page width, they did not resize to screen height.

Ultimately, if a picture is 3:2 aspect ration and a person is on a 16:9 monitor, quite a lot of the picture cannot be seen without scrolling.

I'm still trying to figure out if its possible to resize image height to be under screen height.