Thank you guys for the suggestions.
Changes in v4.12 and v4.13:
- Fixed: if error occur while saving an image, it didn't mark the form field where the error was.
- Added: direct links to media/thumb files at edit image page. (links are at filename)
- Added: new setting $exif_enable to enable/disable EXIF support. This setting will only work if PHP itself supports EXIF, otherwise it will be ignored and EXIF support will be disabled.
- Added: image resize, thumbnail resize/create at add/edit image pages
- Added: edit image link after new image added
- Added: delete image link at image edit page (next to image name header)
- Changed: image name field at add images page is no longer required, if left empty filename will be used
- Changed: return to "add images" page after image(s) successfully added
- Changed: improved message display after new image(s) added
New settings added:
$exif_enable = 1; //use exif? if PHP doesn't support read_exif_data() function, this setting will be ignored and exif support will be disabled.
$image_resize_default = 1; //resize image by default for add new images page (1 = yes, 0 = no)
$thumb_tools_default = 2; //thumbnail tools by default for add new images page (0 = skip, 1 = resize, 2 = create)
$image_resize_type = -1; //image resize type (-1 = use settings, 1 = proportionally, 2 = fixed width, 3 = fixed height)
$image_resize_quality = -1; //image quality (-1 = use settings, 0-100 = quality)
$image_resize_width = -1; //image resize width (-1 = use settings)
$image_resize_height = -1; //image resize height (-1 = use settings)
$thumb_resize_type = -1; //thumbnail resize type (-1 = use settings, 1 = proportionally, 2 = fixed width, 3 = fixed height)
$thumb_resize_quality = -1; //thumbnail quality (-1 = use settings, 0-100 = quality)
$thumb_resize_dimension = -1; //thumbnail resize dimention (-1 = use settings)
New language strings:
$lang['skip'] = "Skip";
$lang['resize'] = "Resize";
$lang['create_thumb'] = "Create";
$lang['thumb_tools_add'] = "Thumbnail tools<br /><span class=\"smalltext\"><b>Resize</b> - resize uploaded thumbnail<br /><b>Create</b> - create thumbnail from image file</span>";
$lang['thumb_tools_edit'] = "Thumbnail tools<br /><span class=\"smalltext\"><b>Delete</b> - delete existing thumbnail<br /><b>Resize</b> - resize existing or new uploaded thumbnail<br /><b>Create</b> - create thumbnail from image file</span>";
$lang['image_resize'] = "Resize image";
$lang['image_resize_skipped'] = "Image resize skipped";
$lang['image_resize_error'] = "Image resize error";
$lang['image_resize_success'] = "<b>Image resized</b> (from %sx%s to %sx%s)";
$lang['thumb_resize_skipped'] = "Thumbnail resize skipped";
$lang['thumb_resize_error'] = "Thumbnail resize error";
$lang['thumb_resize_success'] = "Thumbnail resized";
$lang['thumb_create_skipped'] = "Thumbnail create skipped";
$lang['thumb_create_error'] = "Thumbnail create error";
$lang['thumb_create_success'] = "Thumbnail created";
$lang['log'] = "Log";
@cruxy:
the presets feature is more complicated then I thought...it might take a while...