- else
- {
- image_get_image_size(imd, &w, &h);
- imgpixbuf = (PIXBUF_RENDERER(imd->pr))->pixbuf;
- }
-
- if (imgpixbuf && (osd->show & OSD_SHOW_HISTOGRAM) && osd->histogram
- && (!imd->il || imd->il->done))
- with_hist=1;
-
- g_hash_table_insert(vars, "width", g_strdup_printf("%d", w));
- g_hash_table_insert(vars, "height", g_strdup_printf("%d", h));
- g_hash_table_insert(vars, "res", g_strdup_printf("%d × %d", w, h));
- }
-
- g_hash_table_insert(vars, "collection", g_strdup(ct));
- g_hash_table_insert(vars, "number", g_strdup_printf("%d", n));
- g_hash_table_insert(vars, "total", g_strdup_printf("%d", t));
- g_hash_table_insert(vars, "name", g_strdup(name_escaped));
- g_hash_table_insert(vars, "date", g_strdup(text_from_time(imd->mtime)));
- g_hash_table_insert(vars, "size", g_strdup(size));
- g_hash_table_insert(vars, "zoom", image_zoom_get_as_text(imd));
-
- if (!name_escaped)
- {
- text = g_strdup_printf(_("Untitled"));
- }
- else
- {
- text = image_osd_mkinfo(options->image_overlay.common.template_string, imd, vars);