How to write plug-ins?

Here I would like to have a plug-in that with these 5 options(jpeg gif png tiff and bmp) I could add another check box and the file tipe J2K(jpeg2000). My question is where the plug in source codes are located and how could I edit and implement them. I would like to have a FULL tutorial from A-B on how to add things like subject matter.

Hi,

Thank you for your interest in expanding Razuna. While I would normally
totally encourage you and provide you with all the details, I would
recommend that you hold off for doing a plugin.

Reason for this, is that we are hard at work building Razuna 2.0. Razuna
2.0 is a complete re-write of Razuna and also has a new architecture and
technology stack. Thus your plugin for the current Razuna wouldn’t work
with Razuna 2.0.

Razuna 2.0 is planned to be released later this year.

I hope this helps.

But is there anyway to add another jpeg2000 option here?

I would really appreciate some pointers.

Unless you dig into the source code there is no way to add another rendition option.

Okay so I found the code.

This is the code I am trying to change. Now there are 4 converting options and I added one myself(called j2k). Here it is:

So the code starts where I marked it and ends at the “ENDS HERE” marker. I’m wondering if this will work or if I have to change some other functions aswell?

Well this hapenned, and it doesn’t convert. Any suggestions?

Well I managed to move it upwards the convert now button where the others are but it still won’t convert.

Converting images happens in images.cfc, specifically in the convertimage
method. From there is spawns on. It is a rather long method, so you would
have to read through it and start changing things.

(make sure to create a backup first before you start:) )

Okay after studying the code for like two hours straight I still haven’t figured out where to add the .j2k format. I read the code where the comment “Convert an original image to another format(jpg, gif, tiff, png, bfmp)” starts and from there on there are just some scripts. So is there no way to add it?

Thanks for the previous pointers, much obliged.

This is my first time trying to change something in this programming language so I’m kind of stuck. By the way did I add the j2k format correctly in the dmp_asset_images.cfm file? It’s there on the site but it won’t convert it.