.. include:: /Includes.rst.txt .. _feature-1791918601: ================================================== Feature: Images of plan targets from their sources ================================================== Description =========== A plan source can serve an image of its projects and issues through the new contract ``PlanTargetImages`` beside ``PlanSource``; an issue has the image of its project. YouTrack serves the icons of its projects. The new operation ``getPlanTargetImage`` (``GET /api/v1/plan-targets/image``) serves the image to everybody who reads the planning grid: fetched through the source, kept on the server for a day per connection and target, and kept by the browser for a day. Only PNG, JPEG, GIF and WebP images of at most 256 KB are served, recognised by their content; anything else, a source that serves no images or cannot be reached answers 404. The targets of the planning grid and of the target search name the address of their image in ``imageUrl``. Impact ====== YouTrack's signed address of an icon never reaches the browser; adsum reads the icon with the connection. Extensions of planning can implement ``PlanTargetImages`` beside their plan source and run ``PlanTargetImagesContract``. The manual "Extending adsum" describes it. .. index:: API, package:adsum-planning, package:adsum-youtrack