Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12374
Latest: LevelLord
New This Month: 1
New This Week: 2
New Today: 0
Stats
Total Posts: 40211
Total Topics: 7082
Most Online Today: 67
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 40
Total: 40

Author Topic: Image Dimension wrong in post  (Read 2894 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: 15105
    • 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
7541 Views
Last post October 23, 2006, 01:23:17 am
by nicks
10 Replies
6915 Views
Last post February 05, 2007, 05:14:22 am
by roberto
4 Replies
5845 Views
Last post September 16, 2007, 07:47:19 am
by Rafferty
4 Replies
4405 Views
Last post September 21, 2013, 03:05:14 am
by GrahamNR17
2 Replies
2702 Views
Last post April 08, 2014, 10:39:42 pm
by guest12137

+- Recent Topics

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Powered by EzPortal