3
$\begingroup$

I'm currently hand-painting my character's texture using Blender's Texture Paint mode. However, halfway through painting, I realized that the image I created for texture painting is in a smaller resolution than what I want. The image is currently at 1024x1024. Is it possible to resize/scale it to 2048x2048 inside Blender?

Texture paint dimensions

$\endgroup$
  • 2
    $\begingroup$ imho not inside blender, but you can resize it outside easily, and then simply push the "reload" button in blender... $\endgroup$ – m.ardito Sep 25 '16 at 11:31
  • $\begingroup$ Another way would be baking from lower res image to higher res. $\endgroup$ – Mr Zak Jul 28 '17 at 15:36
3
$\begingroup$

Type this in the blender console:

bpy.data.images["ImageName"].scale(x, y)

x, y = desired size of the image

In your case:

bpy.data.images["texture_paint_..."].scale(2048, 2048)

Old topic, but I found this code in the 2.78's API. So we officially have a way to resize image inside blender.

$\endgroup$
  • $\begingroup$ This could be the basis for a small addon I think, a few options to get the image name and the current x and y scale and then allow resizing to original or copy. I think I might tackle it. Thank you for the tip here, TeaCrab. $\endgroup$ – Craig D Jones Feb 3 '18 at 21:41
  • $\begingroup$ My friend Patrick helped me fix up a small addon for this. It is really simple and clean now and in the Image Editor in the UI panel. github.com/artistCDMJ/image_editor_scale/archive/master.zip $\endgroup$ – Craig D Jones Feb 11 '18 at 3:45
  • $\begingroup$ Hey Craig, you are welcome! : ). I’ll check it out later. At work right now. $\endgroup$ – TeaCrab Feb 12 '18 at 6:21
1
$\begingroup$

Yes, actually. Using Texture Paint even.

  1. Save the current image to disk. I made mine "first.png"
  2. Create a new image in UV Image Editor at 2048x2048, save to disk as "second.png"
  3. Import your "first.png" into the 3d view with Import Images as Planes addon(ships with blender, just turn it on).
  4. In material texture stack, add "second.png" to material for the "first.png" plane.
  5. In 3d viewport > Toolshelf in the Slots tab, make the "second.png" as the active paint slot.
  6. Choose the Clone brush tool ,and choose "first.png" as the Source Clone Slot and tick the option to Clone form paint slot.
  7. Paint with a 1.000 strength brush as large as you want, and you will transfer the image from the 1k "first.png" to the 2k "second.png".
  8. Since you saved both texture images to disk already, merely press Save All Images button in the Slots tab to write the change to the "second.png".
  9. Reload the "second.png" as the new texture to your 3d model.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.