Attached Images Resizer, Converter & File Size Reducer

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Ideas Centre
Holger
Registered User
Posts: 1884
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Attached Images Resizer, Converter & File Size Reducer

Post by Holger »

Walther wrote:
Holger wrote:No, the code is mine, because I bought it.
urm, are you sure, because it is not always so that you are also free to distribute it for example.
Of course I'll ask him!
][Moon][Shine][
Registered User
Posts: 42
Joined: Fri May 03, 2013 9:46 am

Re: Attached Images Resizer, Converter & File Size Reducer

Post by ][Moon][Shine][ »

Holger wrote:
Walther wrote:
Holger wrote:...
This is custom programmed and was rather expensiv
...
I see, that would be a problem then to share the code.
No, the code is mine, because I bought it.
Well, then it looks like we should convince you to release it. :roll:

It's totally understandable if that's not on your agenda (for now), as long as you can not benefit from such a v3.1.x extension yourself (I guess you are using more than just one custom mod preventing you from upgrading?). If it was me, I'd put it on github, as it's always a good idea to prevent others from having to reinvent the wheel. Too bad that you had to pay for it though.

DavidIQ is definitely on the right track with having his extension on github. That way if someone wants to fork and pull for added functionality, even better. I wish I had the knowledge to contribute and the time for it. ;)
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18316
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: Attached Images Resizer, Converter & File Size Reducer

Post by DavidIQ »

Volksdevil wrote:+1 to the original idea, but I'd rather it was kept simple.

Attachments resized upon upload as per the original request, with maybe an option of watermarking all images. << That would be a superb enough addition for me :)

I think the whole swapping of external to internal will just complicate things for a potential dev (David?) But if not then...Why not I suppose.
I wouldn't do it in ReIMG 3.1 where the attachments thing would go in. Would probably leave it for ReIMG 3.2 (my versioning is currently at 3.0. Just happens to sort of coincide with phpBB's current version :mrgreen: )
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Holger
Registered User
Posts: 1884
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Attached Images Resizer, Converter & File Size Reducer

Post by Holger »

My major board is heavily modified and has heavy traffic. It will take several months to convert it to phpBB 3.1.
But if the coder released the snippet to me then David or someone else will be welcome to use it!
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: Attached Images Resizer, Converter & File Size Reducer

Post by Volksdevil »

DavidIQ wrote: I wouldn't do it in ReIMG 3.1 where the attachments thing would go in. Would probably leave it for ReIMG 3.2 (my versioning is currently at 3.0. Just happens to sort of coincide with phpBB's current version :mrgreen: )
Ah, so this wouldn't be a standalone 'Attachment resize' extension David? It would be added to the ReImg Extension? Just that I already use https://github.com/VSEphpbb/lightbox
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18316
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: Attached Images Resizer, Converter & File Size Reducer

Post by DavidIQ »

Volksdevil wrote:Ah, so this wouldn't be a standalone 'Attachment resize' extension David? It would be added to the ReImg Extension?
Yes. I'm having to rewrite pretty much all of it so might as well just add some additional feature planning while I'm at it and extend it. It's obvious the original purpose of the MOD is short-reaching nowadays so might as well go with making it more feature full.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
][Moon][Shine][
Registered User
Posts: 42
Joined: Fri May 03, 2013 9:46 am

Re: Attached Images Resizer, Converter & File Size Reducer

Post by ][Moon][Shine][ »

It's really great to see that much excitement for this extension request, WTG guys! :)
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: Attached Images Resizer, Converter & File Size Reducer

Post by Volksdevil »

Good stuff. I'm pleased to hear it, although it may cause some issues for me to use ReImg rather than Lightbox. Will have to consider options at the time.

Main issue being that I can currently easily add lightbox functionality to any image/link outside of the viewtopic pages, anywhere on my site (Custom old style 3.0.x pages, the official 'Pages' extension' etc) by adding a small bit of code:

<a href="/images/about.png" itemprop="image" [b][color=#FF0000]data-lightbox="post-gallery1" data-title="Test title"[/color][/b] style="height: auto; max-height: none; overflow: visible;">
<img src="/images/about_thumb.png" class="history-image" alt="Test alt" [b][color=#FF0000]onclick="viewableArea(this);"[/color][/b]></a>


Achievable?
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18316
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: Attached Images Resizer, Converter & File Size Reducer

Post by DavidIQ »

ReIMG comes with its own lightbox already though I'm considering replacing it. In any case the MOD version sort of works just like what you posted already although the application of the resizing properties is not always straightforward outside of the forum.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: Attached Images Resizer, Converter & File Size Reducer

Post by Volksdevil »

Would it work if the above code had no image size (Width/height) properties, basically a thumb and the actual size of the image was already OK? Then the clicking of it lead to a larger <a target> version?

IIRC I had to do a workround for ReImg in 3.0.x to stop it automatically applying an image size set in the ACP.

Anyway, glad to see you working on this. Dare I mention Avatars? :? :lol:
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6677
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Attached Images Resizer, Converter & File Size Reducer

Post by HiFiKabin »

][Moon][Shine][ wrote:
DavidIQ wrote:I'm currently working on the JavaScript for ReIMG so once I finish I'll take a look at adding some attached image server side resizing functionality unless someone else picks this up. What would be the desired features?
Sounds great!

Desired features:
  • Automatic down-sizing of image to configured resolution
  • If it's a PNG, conversion to JPG
  • Saving as JPG with configured JPG-quality setting
  • Option to remove EXIF data
  • And @Holger's one-click import function would be the added super-bonus
Did I forget something?
Just downsizing (both physical and file size) would suit me.
Configurable in the ACP.
Ignore images smaller than the ACP setting. (so that it doesn't overscale images)
Holger
Registered User
Posts: 1884
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Attached Images Resizer, Converter & File Size Reducer

Post by Holger »

Holger wrote:
Walther wrote:
Holger wrote:No, the code is mine, because I bought it.
urm, are you sure, because it is not always so that you are also free to distribute it for example.
Of course I'll ask him!
I have talked to the coder and we came to the following conclusion:

The mod is developed under GPL and paid by me.
You have to add "Based on mod x by y" or similar to retain a copyright.
Other then that the code is free to use.
][Moon][Shine][
Registered User
Posts: 42
Joined: Fri May 03, 2013 9:46 am

Re: Attached Images Resizer, Converter & File Size Reducer

Post by ][Moon][Shine][ »

That's exceptional news, @Holger. I'm delighted by the idea where this all is heading. :)
User avatar
Lumpy Burgertushie
Registered User
Posts: 69224
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Attached Images Resizer, Converter & File Size Reducer

Post by Lumpy Burgertushie »

actually , if it is under GPL then all you have to do is credit the original copyright holder. It doesn't matter if it was paid for or not. you can then give it away or sell it to someone else if you wish as long as the above is done and you give the buyer the source code etc. they can then sell it or give it away or whatever.

just FYI

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Swanny
Registered User
Posts: 486
Joined: Sun Apr 14, 2002 2:11 am
Location: Canada

Re: Attached Images Resizer, Converter & File Size Reducer

Post by Swanny »

DavidIQ wrote:I'm currently working on the JavaScript for ReIMG so once I finish I'll take a look at adding some attached image server side resizing functionality unless someone else picks this up. What would be the desired features?
THANK YOU!

All I really ask is that the original photo attachment that is uploaded be resized to a maximum dimension as set by admin after the upload is successfully complete.

So a user uploads their 5+ MB photo that is 4000 px wide, and the extension magically resizes it to a max of 1024 px wide or tall (as I configure in ACP). Of course it needs to keep the aspect ratio. At the same time, if someone uploads a 500px wide photo, the extension needs to recognize that and not “upsize” it.

I don’t care about watermarks, converting from one format to another, import, exif, etc. Resizing the original file size is all I need. Keep things simple for now is my advice.
Post Reply

Return to “Extension Requests”