Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12369
Latest: r0sem4rie
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 39810
Total Topics: 7016
Most Online Today: 51
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 43
Total: 44

Author Topic: Image Dimension wrong in post  (Read 2733 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: 14919
    • 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
7382 Views
Last post October 23, 2006, 01:23:17 am
by nicks
10 Replies
6675 Views
Last post February 05, 2007, 05:14:22 am
by roberto
4 Replies
5671 Views
Last post September 16, 2007, 07:47:19 am
by Rafferty
4 Replies
4199 Views
Last post September 21, 2013, 03:05:14 am
by GrahamNR17
2 Replies
2540 Views
Last post April 08, 2014, 10:39:42 pm
by DO THE TON Tim

+- Recent Topics

How to AVOID SEO Hit when Implementing PrettyURLs by SMFHacks
September 12, 2019, 08:50:42 pm

theme by SMFHacks
September 12, 2019, 07:10:51 am

Picture Edit by SMFHacks
August 27, 2019, 11:52:06 am

Getting an error while installing SMF Gallery Pro by SMFHacks
August 18, 2019, 06:54:37 pm

Hashtag Mod Install Error by SMFHacks
August 15, 2019, 08:17:45 am

Rotating Image URLs by SMFHacks
August 05, 2019, 04:26:57 pm

[Mod]Block Proxy VPN On Registration by SMFHacks
August 01, 2019, 10:42:37 pm

[Mod]Nofollow Signature Links by SMFHacks
July 30, 2019, 11:52:28 am

Thinking of getting Ad Seller Pro as well by ajac63
July 28, 2019, 04:46:34 am

Just some questions about Ad Management mod by ajac63
July 26, 2019, 12:12:26 pm

Powered by EzPortal