Changing Image Size in template

BeatRelease
BeatRelease
@beatrelease
11 years ago
43 posts
How do I change the size of an image in my audio rows and charts?

Example code:

{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._item_id size="small" crop="auto" alt=$item.audio_title title=$item.audio_title class="iloutline" width=false height=false}

The size says "small". I can only change it to large, xlarge, etc. How can I make it a specific dimension I want like 512x512?

Thanks
updated by @beatrelease: 01/19/14 04:26:42PM
michael
@michael
11 years ago
7,746 posts
The sizes are the ones that are created via the GD php image function, use those to get it as close as you can, then add the specific widths:

{ width="512" height="512"}

if you use size="small" then stretch it to 512 it will look grainy. and if you use size="xxxlarge" it will be slower to load because the image is so big. so get it close first, then add the sizes.

You can also use class="img_scale" and it will scale to the width of the containing div.
BeatRelease
BeatRelease
@beatrelease
11 years ago
43 posts
Thanks sir, where is GD php image function function located? Sorry if I sound like a noob.
michael
@michael
11 years ago
7,746 posts
its on the server, part of php, you dont need to worry about it.

Just use:
{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._item_id size="xlarge" crop="auto" alt=$item.audio_title title=$item.audio_title class="iloutline" width="512" height="512"}

updated by @michael: 12/18/13 12:29:06AM
BeatRelease
BeatRelease
@beatrelease
11 years ago
43 posts
Works perfect, much appreciated!

Tags