Integrating automatic image resizing

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
Martian
Registered User
Posts: 17
Joined: Fri May 13, 2005 10:26 am
Location: Olympus Mons
Contact:

Re: Integrating automatic image resizing

Post by Martian »

I don't like the image scroll bars.

I fixed this by simply applying "max-width: 100%" to the images, so large images get scaled by the browser to fit in the post field. A simple and elegant solution.

Mostly the image is still large enough, but if I want to view the full-size I need to right-click the image and choose to view the image.

boilingstream
Registered User
Posts: 12
Joined: Thu Jan 03, 2013 10:46 pm

Re: Integrating automatic image resizing

Post by boilingstream »

+1 Seems like my favorite solution ;)

User avatar
Ger
Registered User
Posts: 293
Joined: Mon Jul 26, 2010 1:55 pm
Location: 192.168.1.100
Contact:

Re: Integrating automatic image resizing

Post by Ger »

Posted that in tracker almost a year ago:
http://tracker.phpbb.com/browse/PHPBB3- ... ment-37086
Above message may contain errors in grammar, spelling or wrongly chosen words. This is because I'm not a native speaker. My apologies in advance.

MaFeSa
Registered User
Posts: 69
Joined: Sun Aug 26, 2012 1:44 pm

Re: Integrating automatic image resizing

Post by MaFeSa »

I test code in the ticket and is perfect, please add this also on 3.0.12

Code: Select all

    img {
       border-width: 0;
       max-width: 100%;
    }

User avatar
Master_Cylinder
Registered User
Posts: 361
Joined: Wed Jul 31, 2013 9:54 pm

Re: Integrating automatic image resizing

Post by Master_Cylinder »

ReImage w/highslide in the core would be neat...
These kids today...
Buy them books, send them to school and what do they do?

They eat the paste. :lol:

boilingstream
Registered User
Posts: 12
Joined: Thu Jan 03, 2013 10:46 pm

Re: Integrating automatic image resizing

Post by boilingstream »

in that case the images not really resized. only smaller displayed. no good solution and a bad fact

User avatar
Master_Cylinder
Registered User
Posts: 361
Joined: Wed Jul 31, 2013 9:54 pm

Re: Integrating automatic image resizing

Post by Master_Cylinder »

boilingstream wrote:in that case the images not really resized. only smaller displayed. no good solution and a bad fact
That is the whole idea, display smaller images and allow users to see the full size by clicking on it. That's very good.
These kids today...
Buy them books, send them to school and what do they do?

They eat the paste. :lol:

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1836
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Integrating automatic image resizing

Post by DavidIQ »

boilingstream wrote:in that case the images not really resized. only smaller displayed. no good solution and a bad fact
If you mean that we won't take that remote image, store it locally, and show a thumbnail instead then no that will not be happening. The idea of linking to external images is so that there is no storage hit on the server, which is especially important for those on shared hosting.
Image

User avatar
Master_Cylinder
Registered User
Posts: 361
Joined: Wed Jul 31, 2013 9:54 pm

Re: Integrating automatic image resizing

Post by Master_Cylinder »

I thought he wanted to take a large uploaded image and permanently resize it as a smaller image to save space. I don't care for that option either.
These kids today...
Buy them books, send them to school and what do they do?

They eat the paste. :lol:

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1836
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Integrating automatic image resizing

Post by DavidIQ »

I've actually seen both requests before for ReIMG and both have their issues. The one about storing images on the server I already mentioned plus if the image should be stored locally then it should be up to the user to use the uploads feature, if it's enabled for that forum. The one you've mentioned, resizing on upload, also has it's drawbacks. For starters if we resize the image then what do we resize it to without distorting the image? It might also only be possible with ImageMagick, which might not be available on all servers especially Windows servers. If this is what is being suggested then this would be a separate feature anyways as it would be dealing with the uploads mechanism which is not really what is being discussed here.
Image

Post Reply