Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12411
Latest: PabloWatts
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 39948
Total Topics: 7033
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 35
Total: 35

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

+- Recent Topics

hashTags only used by admins, but visible to everyone? by SMFHacks
December 04, 2019, 11:08:35 am

Responsive Layout by Matthias
November 30, 2019, 03:05:57 pm

Secure connection failed Pretty Url Pro by Rock Lee
November 26, 2019, 10:44:23 am

Black Friday Sale Week 2019 by SMFHacks
November 23, 2019, 04:47:56 pm

German Translation missing in SMF 2.1R1 by SMFHacks
November 19, 2019, 02:38:42 pm

Unread items issue by SMFHacks
November 19, 2019, 10:07:32 am

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Powered by EzPortal