Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 186
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 188
Total: 188

Author Topic: Image Dimension wrong in post  (Read 4344 times)

0 Members and 1 Guest are viewing this topic.

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 165
    • View Profile
Image Dimension wrong in post
« on: August 05, 2010, 04:07:46 am »
The Gallery config use 1024x800 as a max picture dimension, so if someone is uploading a picture higher than this, the picture will be automaticly shrink, this works correct. The Problem is the post in the SMF forum, the BB Code image tag has the orignial dimension width=1200 height=1600 and so the picture is expanded. The solve for the moment is, to edit such postings and remove the dimension. So the value of the dimension should be overgive to the forum after the resize of the picuture and not before or better, if you enabled the resizing than the width and height are not used, because the picture has already the right dimension. I hope I wrote my problem correct in english  ::)

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 165
    • View Profile
Re: Image Dimension wrong in post
« Reply #1 on: December 17, 2010, 10:59:58 am »
Hello,

this problem still exist in 3.0.11 , I give you a sample

- Resize of pictures is activated to 800x600
- I upload an image with the dimension of 2560x1920
- The image will be correct resized to 800x600

but, the post in the forum has this wrong dimension inside

Code: [Select]
[img height=1920 width=2560]http://smfhacks.com/gallery/3/4_17_12_10_5_53_49.jpeg[/img]

http://smfhacks.com/index.php?action=gallery;sa=view;id=3486
 
so the picture will be strechted, it should be

Code: [Select]
[img]http://smfhacks.com/gallery/3/4_17_12_10_5_53_49.jpeg[/img]

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Image Dimension wrong in post
« Reply #2 on: December 17, 2010, 11:34:43 am »
Fixed for next update will grab the correct image size after the image has been resized.

I believe there was a reason why I hardcoded the height/width in the bbcodes
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 165
    • View Profile
Re: Image Dimension wrong in post
« Reply #3 on: December 18, 2010, 01:48:29 am »
Thank you and I wish a merry christmas.

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
8810 Views
Last post October 23, 2006, 01:23:17 am
by nicks
10 Replies
9490 Views
Last post February 05, 2007, 05:14:22 am
by roberto
4 Replies
7429 Views
Last post September 16, 2007, 07:47:19 am
by Rafferty
4 Replies
6695 Views
Last post September 21, 2013, 03:05:14 am
by GrahamNR17
2 Replies
4193 Views
Last post April 08, 2014, 10:39:42 pm
by guest12137

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal