[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!
Anti-Spam Guide
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)
dingus33
Registered User
Posts: 68
Joined: Fri Sep 29, 2017 11:11 am

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

Post by dingus33 » 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

Exabot
Translator
Posts: 154
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

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

Post by Exabot » Tue Jan 22, 2019 6:43 am

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: 1995
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 » Tue Jan 22, 2019 4:53 pm

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: 154
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

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

Post by Exabot » Mon Feb 04, 2019 7:28 am

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: 29
Joined: Thu Dec 14, 2017 7:41 am

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

Post by Fezroux » 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.

Exabot
Translator
Posts: 154
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

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

Post by Exabot » Thu Feb 14, 2019 6:37 am

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 » Tue May 14, 2019 12:04 pm

Could I help in anyway to get this working in phpBB 3.2.7?

dingus33
Registered User
Posts: 68
Joined: Fri Sep 29, 2017 11:11 am

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

Post by dingus33 » Sat Jun 01, 2019 5:09 am

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.

dingus33
Registered User
Posts: 68
Joined: Fri Sep 29, 2017 11:11 am

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

Post by dingus33 » Sat Jun 01, 2019 5:19 am

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/

dingus33
Registered User
Posts: 68
Joined: Fri Sep 29, 2017 11:11 am

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

Post by dingus33 » Fri Jun 07, 2019 4:47 pm

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).

Post Reply

Return to “Extensions in Development”