SUMMARY 5.2.0-prealpha (git 01a7589) After opening a picture, dragging the picture of the same size into krita and inserting a new layer, the position is wrong. It should be in the correct position, not in the bottom right. STEPS TO REPRODUCE 1. Open a picture. 2. Drag and drop an image of the same size onto the open image. (Insert a new layer.) OBSERVED RESULT A new layer with the same size inserted appears at the bottom right. EXPECTED RESULT A new layer of the same size inserted appears in the correct position. SOFTWARE/OS VERSIONS Krita Version: 5.2.0-prealpha (git 01a7589) Installation type: installer / portable package Hidpi: true Qt Version (compiled): 5.12.12 Version (loaded): 5.12.12 OS Information Build ABI: x86_64-little_endian-llp64 Build CPU: x86_64 CPU: x86_64 Kernel Type: winnt Kernel Version: 10.0.19042 Pretty Productname: Windows 10 (10.0) Product Type: windows Product Version: 10 Locale Languages: en_US, en_US C locale: C QLocale current: en QLocale system: zh QTextCodec for locale: UTF-8 Process ACP: 65001 (UTF-8) System locale default ACP: 936 (ANSI/OEM - 简体中文 GBK) OpenGL Info Vendor: "Google Inc. (NVIDIA)" Renderer: "ANGLE (NVIDIA, NVIDIA GeForce GTX 970 Direct3D11 vs_5_0 ps_5_0, D3D11-30.0.15.1179)" Version: "OpenGL ES 3.0.0 (ANGLE 2.1.0 git hash: f2280c0c5f93+krita_qt5.12.12)" Shading language: "OpenGL ES GLSL ES 3.00 (ANGLE 2.1.0 git hash: f2280c0c5f93+krita_qt5.12.12)" Requested format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::CompatibilityProfile) Current format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) Version: 3.0 Supports deprecated functions false is OpenGL ES: true supportsBufferMapping: true supportsBufferInvalidation: false forceDisableTextureBuffers: true Extensions: "GL_ANGLE_get_tex_level_parameter" "GL_KHR_parallel_shader_compile" "GL_OES_texture_half_float" "GL_EXT_sRGB" "GL_WEBGL_video_texture" "GL_OVR_multiview2" "GL_OVR_multiview" "GL_ANGLE_program_cache_control" "GL_EXT_disjoint_timer_query" "GL_EXT_float_blend" "GL_EXT_debug_marker" "GL_EXT_texture_compression_bptc" "GL_OES_surfaceless_context" "GL_EXT_draw_buffers" "GL_EXT_clip_control" "" "GL_ANGLE_provoking_vertex" "GL_ANGLE_depth_texture" "GL_CHROMIUM_sync_query" "GL_ANGLE_client_arrays" "GL_EXT_robustness" "GL_NV_pixel_buffer_object" "GL_OES_fbo_render_mipmap" "GL_OES_compressed_ETC2_sRGB8_alpha8_texture" "GL_OES_get_program_binary" "GL_OES_EGL_image" "GL_EXT_texture_filter_anisotropic" "GL_EXT_occlusion_query_boolean" "GL_OES_texture_float" "GL_EXT_multisampled_render_to_texture" "GL_OES_standard_derivatives" "GL_EXT_discard_framebuffer" "GL_OES_EGL_image_external" "GL_ANGLE_request_extension" "GL_EXT_shader_texture_lod" "GL_EXT_instanced_arrays" "GL_ANGLE_memory_size" "GL_OES_texture_float_linear" "GL_EXT_texture_storage" "GL_OES_texture_stencil8" "GL_EXT_multi_draw_indirect" "GL_OES_compressed_ETC2_RGB8_texture" "GL_NV_framebuffer_blit" "GL_CHROMIUM_bind_uniform_location" "GL_ANGLE_robust_client_memory" "GL_ANGLE_instanced_arrays" "GL_EXT_texture_compression_s3tc_srgb" "GL_ANGLE_translated_shader_source" "GL_OES_compressed_EAC_RG11_unsigned_texture" "GL_ANGLE_texture_multisample" "GL_EXT_texture_norm16" "GL_EXT_texture_rg" "GL_EXT_texture_type_2_10_10_10_REV" "GL_OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture" "GL_EXT_read_format_bgra" "GL_ANGLE_base_vertex_base_instance" "GL_ANGLE_framebuffer_blit" "GL_EXT_draw_buffers_indexed" "GL_EXT_frag_depth" "GL_OES_compressed_EAC_R11_signed_texture" "GL_ANGLE_lossy_etc_decode" "GL_CHROMIUM_lose_context" "GL_ANGLE_base_vertex_base_instance_shader_builtin" "GL_ANGLE_copy_texture_3d" "GL_OES_mapbuffer" "GL_OES_texture_border_clamp" "GL_OES_draw_elements_base_vertex" "GL_NV_fence" "GL_NV_pack_subimage" "GL_EXT_blend_func_extended" "GL_EXT_unpack_subimage" "GL_EXT_texture_compression_dxt1" "GL_EXT_map_buffer_range" "GL_ANGLE_multi_draw" "GL_EXT_draw_elements_base_vertex" "GL_OES_compressed_ETC2_punchthroughA_RGBA8_texture" "GL_ANGLE_pack_reverse_row_order" "GL_EXT_color_buffer_float" "GL_OES_element_index_uint" "GL_ANGLE_framebuffer_multisample" "GL_ANGLE_get_serialized_context_string" "GL_OES_texture_half_float_linear" "GL_EXT_color_buffer_half_float" "GL_OES_vertex_array_object" "GL_OES_rgb8_rgba8" "GL_EXT_debug_label" "GL_EXT_texture_format_BGRA8888" "GL_CHROMIUM_copy_compressed_texture" "GL_OES_compressed_EAC_RG11_signed_texture" "GL_OES_draw_buffers_indexed" "GL_OES_depth24" "GL_EXT_texture_compression_rgtc" "GL_OES_texture_npot" "GL_ANGLE_multiview_multisample" "GL_OES_depth32" "GL_OES_packed_depth_stencil" "GL_OES_compressed_EAC_R11_unsigned_texture" "GL_ANGLE_texture_compression_dxt3" "GL_NV_EGL_stream_consumer_external" "GL_KHR_debug" "GL_CHROMIUM_copy_texture" "GL_OES_compressed_ETC2_sRGB8_texture" "GL_OES_compressed_ETC2_RGBA8_texture" "GL_CHROMIUM_bind_generates_resource" "GL_EXT_EGL_image_external_wrap_modes" "GL_EXT_blend_minmax" "GL_ANGLE_texture_usage" "GL_OES_EGL_image_external_essl3" "GL_AMD_performance_monitor" "GL_ANGLE_texture_compression_dxt5" QPA OpenGL Detection Info supportsDesktopGL: true supportsAngleD3D11: true isQtPreferAngle: true useBufferInvalidation (config option): false Hardware Information GPU Acceleration: auto Memory: 32693 Mb Number of Cores: 16 Swap Location: C:/Users/xi/AppData/Local/Temp Built for: sse2 Base instruction set: sse2 Supported instruction sets: fma3+avx2 avx2 fma3+avx avx fma4 fma3+sse4.2 sse4.2 sse4.1 ssse3 sse3 sse2 Current Settings Current Swap Location: C:/Users/xi/AppData/Local/Temp Current Swap Location writable: true Undo Enabled: true Undo Stack Limit: 200 Use OpenGL: true Use OpenGL Texture Buffer: true Disable Vector Optimizations: false Disable AVX Optimizations: false Canvas State: OPENGL_SUCCESS Autosave Interval: 420 Use Backup Files: true Number of Backups Kept: 1 Backup File Suffix: ~ Backup Location: Same Folder as the File Backup Location writable: false Use Win8 Pointer Input: false Use RightMiddleTabletButton Workaround: false Levels of Detail Enabled: false Use Zip64: false Display Information Number of screens: 2 Screen: 0 Name: \\.\DISPLAY1 Depth: 32 Scale: 1 Position: 0, 0 Resolution in pixels: 2560x1440 Manufacturer: Model: Refresh Rate: 59 Screen: 1 Name: \\.\DISPLAY2 Depth: 32 Scale: 1 Position: 637, 1440 Resolution in pixels: 1920x1080 Manufacturer: Model: Refresh Rate: 60 --------------------- ================================================================================ SESSION: 17 Jun 2022 18:27:37 +0800. Executing D:\P F\krita-nightly-x64-5.2.0-prealpha-01a7589aae\bin\krita.exe Krita Version: 5.2.0-prealpha (git 01a7589), Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 9256 -- -- -- -- -- -- -- -- 17 Jun 2022 18:27:37 +0800: Style: fusion. Available styles: windowsvista, Windows, Fusion 17 Jun 2022 18:27:38 +0800: Creating database from scratch (database didn't exist, new schema version: 0.0.16). 17 Jun 2022 18:27:52 +0800: detected appx or steam package - not creating the updater 17 Jun 2022 18:28:13 +0800: CLOSING SESSION ================================================================================ SESSION: 17 Jun 2022 18:28:18 +0800. Executing D:\P F\krita-nightly-x64-5.2.0-prealpha-01a7589aae\bin\krita.exe Krita Version: 5.2.0-prealpha (git 01a7589), Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 2996 -- -- -- -- -- -- -- -- 17 Jun 2022 18:28:18 +0800: Style: fusion. Available styles: windowsvista, Windows, Fusion 17 Jun 2022 18:28:19 +0800: Database is up to date. Version: 0.0.16, created by Krita 5.2.0-prealpha, at 周五 6月 17 18:27:38 2022 17 Jun 2022 18:28:21 +0800: detected appx or steam package - not creating the updater 17 Jun 2022 18:40:35 +0800: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2 17 Jun 2022 18:40:47 +0800: Exporting Document: C:/Users/xi/Desktop/1.kra as application/x-krita. 2480 * 3508 pixels, 3 layers, 101 frames, 24 framerate. Export configuration: No configuration 17 Jun 2022 18:40:47 +0800: Converting from application/x-krita to application/x-krita. Location: C:/Users/xi/Desktop/1.kra. Real location: C:/Users/xi/Desktop/1.kra. Batchmode: 0. Configuration: none 17 Jun 2022 18:40:47 +0800: Completed saving C:/Users/xi/Desktop/1.kra (mime: application/x-krita). Result: OK. Warning: . Size: 279598 17 Jun 2022 18:40:47 +0800: Saving Completed 17 Jun 2022 18:40:56 +0800: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2 17 Jun 2022 18:41:01 +0800: Importing application/x-krita to application/x-krita. Location: C:/Users/xi/Desktop/1.kra. Real location: C:/Users/xi/Desktop/1.kra. Batchmode: 0 17 Jun 2022 18:41:01 +0800: Loaded image from application/x-krita. Size: 2480 * 3508 pixels, 4.16667 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3 17 Jun 2022 18:41:13 +0800: Importing application/x-krita to application/x-krita. Location: C:/Users/xi/Desktop/1.kra. Real location: C:/Users/xi/Desktop/1.kra. Batchmode: 0 17 Jun 2022 18:41:13 +0800: Loaded image from application/x-krita. Size: 2480 * 3508 pixels, 4.16667 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3 17 Jun 2022 18:41:18 +0800: Importing application/x-krita to application/x-krita. Location: C:/Users/xi/Desktop/1.kra. Real location: C:/Users/xi/Desktop/1.kra. Batchmode: 0 17 Jun 2022 18:41:18 +0800: Loaded image from application/x-krita. Size: 2480 * 3508 pixels, 4.16667 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3 17 Jun 2022 18:41:29 +0800: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2 17 Jun 2022 18:41:42 +0800: Importing application/x-krita to application/x-krita. Location: C:/Users/xi/Desktop/1.kra. Real location: C:/Users/xi/Desktop/1.kra. Batchmode: 0 17 Jun 2022 18:41:42 +0800: Loaded image from application/x-krita. Size: 2480 * 3508 pixels, 4.16667 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3 17 Jun 2022 18:46:13 +0800: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2 17 Jun 2022 18:49:48 +0800: Importing application/x-krita to application/x-krita. Location: C:/Users/xi/Desktop/1.kra. Real location: C:/Users/xi/Desktop/1.kra. Batchmode: 0 17 Jun 2022 18:49:48 +0800: Loaded image from application/x-krita. Size: 2480 * 3508 pixels, 4.16667 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3 17 Jun 2022 18:49:55 +0800: Importing application/x-krita to application/x-krita. Location: C:/Users/xi/Desktop/1.kra. Real location: C:/Users/xi/Desktop/1.kra. Batchmode: 0 17 Jun 2022 18:49:55 +0800: Loaded image from application/x-krita. Size: 2480 * 3508 pixels, 4.16667 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3 ---------------------
I'm not sure that this is a bug? The new layer is created with the top-left position at the drop point?
(In reply to Halla Rempt from comment #1) > I'm not sure that this is a bug? The new layer is created with the top-left position at the drop point? The new layer is not created in the upper left corner of the drop point. This will not be the case in 5.0.6 (including older versions), so I think it's a bug.
Thanks for your comment! Automatically switching the status of this bug to REPORTED so that the KDE team knows that the bug is ready to get confirmed. In the future you may also do this yourself when providing needed information.
Im not sure what do you mean by correct position in this scenario, could you explain where are you expecting the image to be dropped? Usually when dropping, the image is placed at the cursor position, however I can see some frustration to reposition the dropped image in cases it doesn't fall where you need. From what I tested the image top left is not always dropped at the cursor position (this on macOS and multiple monitors). Curiously enough if your drop more than one image at a time, all images are placed so that the dropped image left corners matches with the canvas left corner.
(In reply to vanyossi from comment #4) > Im not sure what do you mean by correct position in this scenario, could you > explain where are you expecting the image to be dropped? Usually when > dropping, the image is placed at the cursor position, however I can see some > frustration to reposition the dropped image in cases it doesn't fall where > you need. > > From what I tested the image top left is not always dropped at the cursor > position (this on macOS and multiple monitors). Curiously enough if your > drop more than one image at a time, all images are placed so that the > dropped image left corners matches with the canvas left corner. 1. Is placement at cursor position a new improvement? If this is a new improvement, I can't place at the cursor position. The position of the cursor during placement affects the placement position, but cannot be placed exactly at the cursor position. 2. If it is not a new improvement, I think that 5.0.6 is the correct one. The upper left corner of the placed image matches the upper left corner of the canvas. When the placed image and the canvas are the same size, they will completely coincide.