Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12423
Latest: poseidon97
New This Month: 4
New This Week: 1
New Today: 0
Stats
Total Posts: 40023
Total Topics: 7044
Most Online Today: 78
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 40
Total: 41

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

0 Members and 1 Guest are viewing this topic.

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 139
    • 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: 139
    • 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: 15013
    • 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: 139
    • 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
7459 Views
Last post October 23, 2006, 01:23:17 am
by nicks
10 Replies
6779 Views
Last post February 05, 2007, 05:14:22 am
by roberto
4 Replies
5739 Views
Last post September 16, 2007, 07:47:19 am
by Rafferty
4 Replies
4284 Views
Last post September 21, 2013, 03:05:14 am
by GrahamNR17
2 Replies
2607 Views
Last post April 08, 2014, 10:39:42 pm
by DO THE TON Tim

+- Recent Topics

English British Translation file by HAL9000
Today at 05:44:28 pm

Characters dispayed as boxes by SMFHacks
January 16, 2020, 07:21:51 am

Multiple adds where one used to be? by SMFHacks
January 07, 2020, 08:20:38 am

Ribbon Theme Logo Position by slizzie1986
January 06, 2020, 08:52:31 pm

System enhancement? by SMFHacks
January 03, 2020, 09:22:45 am

Pretty Url Pro Is it compatible with 7.2? by Rock Lee
January 01, 2020, 08:53:50 pm

Order of photos by SMFHacks
December 29, 2019, 02:02:28 pm

SMF Cookie Change Compatibly by HDB
December 28, 2019, 03:33:49 pm

With SMF 2.0.16 being newly released is GDPR Pro a Better Tool? by HDB
December 28, 2019, 11:21:44 am

can the admin add banners manually? by MW
December 27, 2019, 04:08:39 pm

Powered by EzPortal