[3.2][RC] Auto-Resize Images Server-side

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
dingus33
Registered User
Posts: 136
Joined: Fri Sep 29, 2017 11:11 am

Re: [3.2][RC] Auto-Resize Images Server-side

Post by dingus33 »

Exabot wrote:
Sun Jan 20, 2019 1:14 pm
Ext not working phpbb 3.2.5
thank you for your report. looking at the phpbb changelogs, i predicted it would stop working.
i haven't fixed it because i haven't upgraded my board yet, but i think i know what the problem is:
IIRC i read that phpbb dropped support for imagemagick, and there is some phpbb config setting that defines where the imagemagick libs/bins are located on the system. i'm guessing that phpbb setting got removed, so i just have to add something equivalent to the ACP panel for my extension so people can define the path to imagemagick. should be an easy fix.

is it urgent? i'll work on it sooner if so.

edit: yes, it looks like they made the change in 3.2.4: viewtopic.php?f=14&t=2492206
Exabot
Translator
Posts: 211
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: [3.2][RC] Auto-Resize Images Server-side

Post by Exabot »

dingus33 wrote:
Tue Jan 22, 2019 5:29 am
Exabot wrote:
Sun Jan 20, 2019 1:14 pm
Ext not working phpbb 3.2.5
thank you for your report. looking at the phpbb changelogs, i predicted it would stop working.
i haven't fixed it because i haven't upgraded my board yet, but i think i know what the problem is:
IIRC i read that phpbb dropped support for imagemagick, and there is some phpbb config setting that defines where the imagemagick libs/bins are located on the system. i'm guessing that phpbb setting got removed, so i just have to add something equivalent to the ACP panel for my extension so people can define the path to imagemagick. should be an easy fix.

is it urgent? i'll work on it sooner if so.

edit: yes, it looks like they made the change in 3.2.4: viewtopic.php?f=14&t=2492206
Yes, Imagemagick was removed. Actually, its a bit quick because big pictures are uploaded to the forum. :)
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: [3.2][RC] Auto-Resize Images Server-side

Post by canonknipser »

In the meantime, you can try this extension of mine: https://www.phpbb.com/customise/db/exte ... umbnailer/ - written because of the removal of imagemagick direct calls. This is just for creating the thumbs.
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
Exabot
Translator
Posts: 211
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: [3.2][RC] Auto-Resize Images Server-side

Post by Exabot »

dingus33 wrote:
Tue Jan 22, 2019 5:29 am
Exabot wrote:
Sun Jan 20, 2019 1:14 pm
Ext not working phpbb 3.2.5
thank you for your report. looking at the phpbb changelogs, i predicted it would stop working.
i haven't fixed it because i haven't upgraded my board yet, but i think i know what the problem is:
IIRC i read that phpbb dropped support for imagemagick, and there is some phpbb config setting that defines where the imagemagick libs/bins are located on the system. i'm guessing that phpbb setting got removed, so i just have to add something equivalent to the ACP panel for my extension so people can define the path to imagemagick. should be an easy fix.

is it urgent? i'll work on it sooner if so.

edit: yes, it looks like they made the change in 3.2.4: viewtopic.php?f=14&t=2492206
News? :)
Fezroux
Registered User
Posts: 51
Joined: Thu Dec 14, 2017 7:41 am
Location: US

Re: [3.2][RC] Auto-Resize Images Server-side

Post by Fezroux »

As an owner of a forum that revolves around members uploaded images, this extension was a total blessing. It would be a wonderful thing If it could be modified to work with 3.2.5.
Exabot
Translator
Posts: 211
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: [3.2][RC] Auto-Resize Images Server-side

Post by Exabot »

Fezroux wrote:
Thu Feb 14, 2019 4:30 am
As an owner of a forum that revolves around members uploaded images, this extension was a total blessing. It would be a wonderful thing If it could be modified to work with 3.2.5.
Yes, it is!
haneliuh
Registered User
Posts: 4
Joined: Thu Oct 31, 2002 8:27 am
Location: Finland

Re: [3.2][RC] Auto-Resize Images Server-side

Post by haneliuh »

Could I help in anyway to get this working in phpBB 3.2.7?
User avatar
dingus33
Registered User
Posts: 136
Joined: Fri Sep 29, 2017 11:11 am

Re: [3.2][RC] Auto-Resize Images Server-side

Post by dingus33 »

mastnacek wrote:
Thu Oct 25, 2018 6:48 am
Hello
I installed your extension. Path to imagemagick i use /home/www/tmp/ and phpbb agree with it.
After upload image filesize is same. No errors and in log I have this

INFO: [2018-10-25 07:52:51am] mastnacek: krmelec_2.jpg
INFO: image filesize too big; resizing.
INFO: /home/www/tmp/mogrify -resize 200x200\> "files/49_c4f852971b5eeba6eab44a7d7efb9c9a"
INFO: resized from 418695 B to 418695 B
INFO: resize execution time: 0.1436550617218s

Where could be a mistake?
sorry for not getting back to you. i'm not really sure, but if you're still interested in troubleshooting (many months later, i know :oops: ), i can try to figure it out with you.
User avatar
dingus33
Registered User
Posts: 136
Joined: Fri Sep 29, 2017 11:11 am

Re: [3.2][RC] Auto-Resize Images Server-side

Post by dingus33 »

Exabot wrote:
Mon Feb 04, 2019 7:28 am
News? :)
Fezroux wrote:
Thu Feb 14, 2019 4:30 am
As an owner of a forum that revolves around members uploaded images, this extension was a total blessing. It would be a wonderful thing If it could be modified to work with 3.2.5.
haneliuh wrote:
Tue May 14, 2019 12:04 pm
Could I help in anyway to get this working in phpBB 3.2.7?
thank you so much for your patience.

i've updated the extension (v1.0.4) to work in phpBB v3.2.4+ (tested in phpBB v3.2.7). see the OP.
you must now manually specify the path to ImageMagick in the extension's settings.

paranoid upgrade approach: disable the extension, click 'Delete data', install the new extension files, and enable it

also, i changed the default IM parameters to include -auto-orient.
see https://imagemagick.org/script/command- ... uto-orient
basically, many images (from cell phones) rely on metadata for orientation. unfortunately, most web browsers have not implemented a way to read this metadata and correctly orient images. in my experience, this means that many images on the web look incorrectly rotated. this imagemagick setting fixes the issue. more info on this phenomenon: http://sethfowler.org/blog/2013/09/13/n ... ientation/
User avatar
dingus33
Registered User
Posts: 136
Joined: Fri Sep 29, 2017 11:11 am

Re: [3.2][RC] Auto-Resize Images Server-side

Post by dingus33 »

i suspected calling exec would cause this to fail validation, but i tried for CDB anyway. it was rejected :lol:

i'll change it to use a PHP extension for ImageMagick instead. there are at least a couple -- Imagick and MagickWand. i'm going with Imagick because it seems to be much more actively maintained.

if anyone really wants, maybe i can continue to maintain an unofficial version on github directly using ImageMagick (like how the extension is now).
Swanny
Registered User
Posts: 457
Joined: Sun Apr 14, 2002 2:11 am
Location: Canada

Re: [3.2][RC] Auto-Resize Images Server-side

Post by Swanny »

This extension is working quite well, thanks! I've had to tweak the settings a bit here and there because people upload such big files but I think I have it optimized now?? 900px width/height restriction and 50000 bytes restriction triggers it.
User avatar
dingus33
Registered User
Posts: 136
Joined: Fri Sep 29, 2017 11:11 am

Re: [3.2][RC] Auto-Resize Images Server-side

Post by dingus33 »

Swanny wrote:
Wed Jul 24, 2019 7:13 pm
This extension is working quite well, thanks! I've had to tweak the settings a bit here and there because people upload such big files but I think I have it optimized now?? 900px width/height restriction and 50000 bytes restriction triggers it.
glad it's working for you.

yes, i think my extension defaults are reasonable, but of course tweak them to your liking.

note that the first step to resizing large images is getting the images uploaded to the server in the first place, and there are a few issues that can get in the way of that: your web server configuration, your PHP configuration, and your phpBB configuration. the default configurations for all of those probably prevent users from uploading large files, so they benefit from adjustment. take a careful look at the install notes in the first post if you haven't already ;)
User avatar
chanlon1
Registered User
Posts: 191
Joined: Wed Mar 09, 2005 10:01 pm
Location: Belfast, N. Ireland
Contact:

Re: [3.2][RC] Auto-Resize Images Server-side

Post by chanlon1 »

Is this known to work with v3.2.8?

Thanks.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26847
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [ABD] Auto-Resize Images Server-side

Post by Paul »

This topic has been marked as [ABD] - Abandoned as the extension author has not been active recently. If the extension author wishes to continue development, please PM anyone on the Extension Customisations Team to request this topic be unlocked.

Notice!
We do not recommend that a user of the phpBB software install this extension, or any other extension that is marked as "abandoned" or "in development", on a live forum. Doing so may cause your forum to not perform in the manner it should.


Thank you,
The phpBB Extension Customisations Team
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26847
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [ABD] Auto-Resize Images Server-side

Post by Paul »

Reopened as requested.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
Post Reply

Return to “Extensions in Development”